summaryrefslogtreecommitdiff
path: root/libavcodec/h264_refs.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2011-08-12 12:32:31 -0700
committerRonald S. Bultje <rsbultje@gmail.com>2011-08-12 12:32:31 -0700
commit28ca701e0b57dfaf03ab1835ce62faa1de8c4712 (patch)
tree1113d2834892add5ac2d863a01a6ea34c410c634 /libavcodec/h264_refs.c
parent28c1115a915e4e198bfb6bd39909b2d1327c1454 (diff)
h264: add missing brackets.
This caused failure of a few fate tests.
Diffstat (limited to 'libavcodec/h264_refs.c')
-rw-r--r--libavcodec/h264_refs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c
index 50925ce3cc..b7e43e7dca 100644
--- a/libavcodec/h264_refs.c
+++ b/libavcodec/h264_refs.c
@@ -515,9 +515,10 @@ int ff_h264_execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count){
pic = find_short(h, frame_num, &j);
if(!pic){
if(mmco[i].opcode != MMCO_SHORT2LONG || !h->long_ref[mmco[i].long_arg]
- || h->long_ref[mmco[i].long_arg]->frame_num != frame_num)
- av_log(h->s.avctx, AV_LOG_ERROR, "mmco: unref short failure\n");
- err = AVERROR_INVALIDDATA;
+ || h->long_ref[mmco[i].long_arg]->frame_num != frame_num) {
+ av_log(h->s.avctx, AV_LOG_ERROR, "mmco: unref short failure\n");
+ err = AVERROR_INVALIDDATA;
+ }
continue;
}
}