[FFmpeg-devel] [PATCH] h264: fix poc values after reset mmco (broken by adedd840e)
Jeff Downs
heydowns at somuchpressure.net
Sat Sep 8 03:54:14 CEST 2012
On Sat, 8 Sep 2012, Michael Niedermayer wrote:
> > @@ -690,6 +694,8 @@ int ff_h264_decode_ref_pic_marking(H264Context *h, GetBitContext *gb){
> > return -1;
> > }*/
> > }
> > + if (opcode == MMCO_RESET)
> > + s->current_picture_ptr->mmco_reset = 1;
> > if(opcode==MMCO_SHORT2LONG || opcode==MMCO_LONG2UNUSED || opcode==MMCO_LONG || opcode==MMCO_SET_MAX_LONG){
> > unsigned int long_arg= get_ue_golomb_31(gb);
> > if(long_arg >= 32 || (long_arg >= 16 && !(opcode == MMCO_SET_MAX_LONG && long_arg == 16) && !(opcode == MMCO_LONG2UNUSED && FIELD_PICTURE))){
> > --
>
> If iam not missing something then this can cause a race in case of
> frame multithreading
You likely are not missing anything. I am not as familiar with the frame
multithreading. I'll revisit.
More information about the ffmpeg-devel
mailing list