summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 7bf419f999..61ed7c5564 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -3762,7 +3762,7 @@ static int decode_slice_header(H264Context *h){
else
h->use_weight = 0;
- if(s->current_picture.reference == 3)
+ if(s->current_picture.reference)
decode_ref_pic_marking(h);
if( h->slice_type != I_TYPE && h->slice_type != SI_TYPE && h->pps.cabac )