[FFmpeg-devel] Fix mjpeg decoder runaway from internal buffer

Anatoly Nenashev anatoly.nenashev
Thu Oct 21 16:20:34 CEST 2010


On 21.10.2010 17:09, Luca Barbato wrote:
> On 10/21/10 2:42 PM, Anatoly Nenashev wrote:
>> 2) Decoding MJPEG movie without overreading check patch.
>> frame=14315 fps= 36 q=0.0 Lsize= 0kB time=596.46 bitrate= 0.0kbits/s
>> real 6m35.055s
>> user 5m28.238s
>> sys 1m0.141s
>>
>> 3) Decoding MJPEG movie with overreading check patch.
>> frame=14315 fps= 51 q=0.0 Lsize= 0kB time=596.46 bitrate= 0.0kbits/s
>> video:43481812kB audio:0kB global headers:0kB muxing overhead 
>> -100.000000%
>>
>> real 6m37.744s
>> user 5m29.503s
>> sys 1m0.339s
>
> Curious, could you please have 5 runs of each (maybe a shorter sample 
> to avoid to spend an hour over it)?
>
> lu
Ok!
I've made some tests.

1) Without overread checker

Pass # |       real       |       user       |       sys        |
------------------------------------------------------------------------------
      1     | 1m23,462s  |  1m9,927s    | 0m11,994s |
      2     | 1m21,598s  |  1m9,624s    | 0m11,959s |
      3     | 1m22,672s  |  1m10,743s  | 0m11,913s |
      4     | 1m21,598s  |  1m9,640s    | 0m11,944s |
      5     | 1m21,586s  |  1m9,620s    | 0m11,953s |

2) With overread checker

Pass # |       real       |       user       |       sys        |
------------------------------------------------------------------------------
      1     | 1m23,370s  |  1m9,347s    | 0m11,869s |
      2     | 1m20,922s  |  1m9,249s    | 0m11,659s |
      3     | 1m21,062s  |  1m9,279s    | 0m11,769s |
      4     | 1m20,804s  |  1m8,885s    | 0m11,906s |
      5     | 1m20,782s  |  1m9,118s    | 0m11,649s |

Original Big Buck Bunny mjpeg video was truncated in 2 minutes.
I've reboot system before any series of tests to clear any caches.

Anatoly.





More information about the ffmpeg-devel mailing list