Ticket #7522: mythtv_h264_strict_test1.diff

File mythtv_h264_strict_test1.diff, 679 bytes (added by tralph11@…, 3 years ago)

proposed test patch by cehoyos at FFmpeg

  • libs/libavcodec/h264.c

     
    79027902            if(h->sps.bitstream_restriction_flag && s->avctx->has_b_frames >= h->sps.num_reorder_frames) 
    79037903                { } 
    79047904            else if((out_of_order && pics-1 == s->avctx->has_b_frames && s->avctx->has_b_frames < MAX_DELAYED_PIC_COUNT) 
     7905               || h->sps.ref_frame_count > s->avctx->has_b_frames + 1 
    79057906               || (s->low_delay && 
    79067907                ((!cross_idr && out->poc > h->outputed_poc + 2) 
    79077908                 || cur->pict_type == FF_B_TYPE)))