aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264_slice.c
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2016-05-17 14:38:08 +0100
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2016-05-17 14:38:14 +0100
commit7ab2c036b917ad3ecaf245601aeba4316b6604c2 (patch)
treebf9f13cd33e67286a6bc9654a494d5af8ee1a14c /libavcodec/h264_slice.c
parent15ad0232107496c3b12d8aaedfc3398b8cda9ee7 (diff)
parente9f884416c76558098fc1f63825b293956e8483c (diff)
downloadffmpeg-7ab2c036b917ad3ecaf245601aeba4316b6604c2.tar.gz
Merge commit 'e9f884416c76558098fc1f63825b293956e8483c'
* commit 'e9f884416c76558098fc1f63825b293956e8483c': h264: move reading direct_spatial_mv_pred out of ff_set_ref_count() Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/h264_slice.c')
-rw-r--r--libavcodec/h264_slice.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c
index 4e744ea003..0fcb5631b2 100644
--- a/libavcodec/h264_slice.c
+++ b/libavcodec/h264_slice.c
@@ -1689,6 +1689,9 @@ int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl)
if (h->pps.redundant_pic_cnt_present)
sl->redundant_pic_count = get_ue_golomb(&sl->gb);
+ if (sl->slice_type_nos == AV_PICTURE_TYPE_B)
+ sl->direct_spatial_mv_pred = get_bits1(&sl->gb);
+
ret = ff_set_ref_count(h, sl);
if (ret < 0)
return ret;