Revision 6408529b ffmpeg.c

View differences:

ffmpeg.c
2300 2300
            }
2301 2301
        }
2302 2302
        if(codec->codec_type == AVMEDIA_TYPE_VIDEO){
2303
            /* maximum video buffer size is 6-bytes per pixel, plus DPX header size */
2303 2304
            int size= codec->width * codec->height;
2304
            bit_buffer_size= FFMAX(bit_buffer_size, 6*size + 200);
2305
            bit_buffer_size= FFMAX(bit_buffer_size, 6*size + 1664);
2305 2306
        }
2306 2307
    }
2307 2308

  

Also available in: Unified diff