libavcodec/roqvideoenc.c:909: error: Buffer Overrun L3
  Offset added: 16 Size: [0, +oo].

libavcodec/roqvideoenc.c:881:1: <Length trace>
879. }
880. 
881. static void roq_encode_video(RoqContext *enc)
     ^
882. {
883.     RoqTempdata *tempData = enc->tmpData;

libavcodec/roqvideoenc.c:881:1: Parameter `enc->tmpData->used_option[*]`
879. }
880. 
881. static void roq_encode_video(RoqContext *enc)
     ^
882. {
883.     RoqTempdata *tempData = enc->tmpData;

libavcodec/roqvideoenc.c:909:9: Array access: Offset added: 16 Size: [0, +oo]
907.         enc->lambda *= 1.5;
908.         tempData->mainChunkSize = 0;
909.         memset(tempData->used_option, 0, sizeof(tempData->used_option));
             ^
910.         memset(tempData->codebooks.usedCB4, 0,
911.                sizeof(tempData->codebooks.usedCB4));

static void roq_encode_video(RoqContext *enc)
{
    RoqTempdata *tempData = enc->tmpData;
    int i;
    memset(tempData, 0, sizeof(*tempData));
    create_cel_evals(enc, tempData);
    generate_new_codebooks(enc, tempData);
    if (enc->framesSinceKeyframe >= 1) {
        motion_search(enc, 8);
        motion_search(enc, 4);
    }
 retry_encode:
    for (i=0; i<enc->width*enc->height/64; i++)
        gather_data_for_cel(tempData->cel_evals + i, enc, tempData);
    if (tempData->mainChunkSize/8 > 65535) {
        av_log(enc->avctx, AV_LOG_ERROR,
               "Warning, generated a frame too big (%d > 65535), "
               "try using a smaller qscale value.\n",
               tempData->mainChunkSize/8);
        enc->lambda *= 1.5;
        tempData->mainChunkSize = 0;
        memset(tempData->used_option, 0, sizeof(tempData->used_option));
        memset(tempData->codebooks.usedCB4, 0,
               sizeof(tempData->codebooks.usedCB4));
        memset(tempData->codebooks.usedCB2, 0,
               sizeof(tempData->codebooks.usedCB2));
        goto retry_encode;
    }
    remap_codebooks(enc, tempData);
    write_codebooks(enc, tempData);
    reconstruct_and_encode_image(enc, tempData, enc->width, enc->height,
                                 enc->width*enc->height/64);
    enc->avctx->coded_frame = enc->current_frame;
    FFSWAP(AVFrame *, enc->current_frame, enc->last_frame);
    FFSWAP(motion_vect *, enc->last_motion4, enc->this_motion4);
    FFSWAP(motion_vect *, enc->last_motion8, enc->this_motion8);
    av_free(tempData->cel_evals);
    av_free(tempData->closest_cb2);
    enc->framesSinceKeyframe++;
}
['static void roq_encode_video(RoqContext *enc)\n{\n    RoqTempdata *tempData = enc->tmpData;\n    int i;\n    memset(tempData, 0, sizeof(*tempData));\n    create_cel_evals(enc, tempData);\n    generate_new_codebooks(enc, tempData);\n    if (enc->framesSinceKeyframe >= 1) {\n        motion_search(enc, 8);\n        motion_search(enc, 4);\n    }\n retry_encode:\n    for (i=0; i<enc->width*enc->height/64; i++)\n        gather_data_for_cel(tempData->cel_evals + i, enc, tempData);\n    if (tempData->mainChunkSize/8 > 65535) {\n        av_log(enc->avctx, AV_LOG_ERROR,\n               "Warning, generated a frame too big (%d > 65535), "\n               "try using a smaller qscale value.\\n",\n               tempData->mainChunkSize/8);\n        enc->lambda *= 1.5;\n        tempData->mainChunkSize = 0;\n        memset(tempData->used_option, 0, sizeof(tempData->used_option));\n        memset(tempData->codebooks.usedCB4, 0,\n               sizeof(tempData->codebooks.usedCB4));\n        memset(tempData->codebooks.usedCB2, 0,\n               sizeof(tempData->codebooks.usedCB2));\n        goto retry_encode;\n    }\n    remap_codebooks(enc, tempData);\n    write_codebooks(enc, tempData);\n    reconstruct_and_encode_image(enc, tempData, enc->width, enc->height,\n                                 enc->width*enc->height/64);\n    enc->avctx->coded_frame = enc->current_frame;\n    FFSWAP(AVFrame *, enc->current_frame, enc->last_frame);\n    FFSWAP(motion_vect *, enc->last_motion4, enc->this_motion4);\n    FFSWAP(motion_vect *, enc->last_motion8, enc->this_motion8);\n    av_free(tempData->cel_evals);\n    av_free(tempData->closest_cb2);\n    enc->framesSinceKeyframe++;\n}']