X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fh264_direct.c;h=9ef586247290880eff4204e06831700b37d921cd;hb=a0958949ebe115e5dd661c9292c29a8ab7958c22;hp=ce395a3c56fc8b53d033bbd97905b19d48fbf504;hpb=d0ab71ed11c54c40b1c975c713dee8d3993ccdc5;p=ffmpeg diff --git a/libavcodec/h264_direct.c b/libavcodec/h264_direct.c index ce395a3c56f..9ef58624729 100644 --- a/libavcodec/h264_direct.c +++ b/libavcodec/h264_direct.c @@ -131,7 +131,7 @@ void ff_h264_direct_ref_list_init(H264Context * const h){ h->col_fieldoff = 2 * h->ref_list[1][0].f.reference - 3; } - if (cur->f.pict_type != AV_PICTURE_TYPE_B || h->direct_spatial_mv_pred) + if (h->slice_type_nos != AV_PICTURE_TYPE_B || h->direct_spatial_mv_pred) return; for(list=0; list<2; list++){