[FFmpeg-devel] [PATCH] H.264/AVCHD interlaced fixes
Ivan Schreter
schreter
Mon Feb 9 14:47:53 CET 2009
Michael Niedermayer wrote:
> On Mon, Feb 09, 2009 at 12:52:46AM +0100, Ivan Schreter wrote:
>
> [...]
>
>> @@ -7340,6 +7344,8 @@
>> int context_count = 0;
>>
>> h->max_contexts = avctx->thread_count;
>> + h->sei_recovery_frame_cnt = -1;
>> +
>>
>
> i suspect that this will misbehave if CODEC_FLAG2_CHUNKS is set
>
>
The docs for the flag is quite brief. I suppose, the application will
say that it won't give whole frame/field buffer at once, but send it in
chunks? If that's the case, yes, recovery frame count will be overwritten.
First I thought initializing it in frame_start() should do the trick.
However, this is called only _after_ SEI recovery point is processed.
There seems to be no good point where to initialize it.
So where the hell can I put the initialization for this case?
Regards,
Ivan
More information about the ffmpeg-devel
mailing list