Message ID | 1491493633-14683-1-git-send-email-rsbultje@gmail.com |
---|---|
State | Accepted |
Commit | 7f05c5cea04112471d8147487aa3b44141922d09 |
Headers | show |
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index d4d31cc..8d7b6b8 100644 --- a/libavcodec/h264_slice.c +++ b/libavcodec/h264_slice.c @@ -1888,7 +1888,8 @@ static int h264_slice_init(H264Context *h, H264SliceContext *sl, if (sl->slice_type_nos == AV_PICTURE_TYPE_B && !sl->direct_spatial_mv_pred) ff_h264_direct_dist_scale_factor(h, sl); - ff_h264_direct_ref_list_init(h, sl); + if (!h->setup_finished) + ff_h264_direct_ref_list_init(h, sl); if (h->avctx->skip_loop_filter >= AVDISCARD_ALL || (h->avctx->skip_loop_filter >= AVDISCARD_NONKEY &&