summaryrefslogtreecommitdiff
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorLoren Merritt <lorenm@u.washington.edu>2004-10-03 22:01:21 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-10-03 22:01:21 +0000
commit0bc42caddf454a075fad76053c2e9bc2a5a4563a (patch)
tree3898287ce6453a7d72fc5da8e795b594199ad793 /libavcodec/h264.c
parent78a0efb4fce5deb82050acaf51088747662fbfe0 (diff)
h.264 ref list reordering bugfix patch by (Loren Merritt <lorenm at u dot washington dot edu>)
Originally committed as revision 3558 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index c36e3843f7..108042eaea 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2592,6 +2592,8 @@ static int decode_ref_pic_list_reordering(H264Context *h){
int pic_id;
int i;
+ if(reordering_of_pic_nums_idc==3)
+ break;
if(index >= h->ref_count[list]){
av_log(h->s.avctx, AV_LOG_ERROR, "reference count overflow\n");
@@ -2634,9 +2636,7 @@ static int decode_ref_pic_list_reordering(H264Context *h){
}
h->ref_list[list][index]= tmp;
}
- }else if(reordering_of_pic_nums_idc==3)
- break;
- else{
+ }else{
av_log(h->s.avctx, AV_LOG_ERROR, "illegal reordering_of_pic_nums_idc\n");
return -1;
}