diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-07-25 23:39:43 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-07-25 23:39:43 +0000 |
commit | 79b5c77692edafe7d979f3684561fbc87f4fb7f0 (patch) | |
tree | edb4833952159a14585a8c2ab9534f503dd34508 /libavcodec/h264.c | |
parent | 6edac8e1041499e301b05a86e953334b40c2c986 (diff) | |
download | ffmpeg-79b5c77692edafe7d979f3684561fbc87f4fb7f0.tar.gz |
Print an error if a reference picture is missing.
Originally committed as revision 14403 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index c27c745f3a..c3def672ea 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -3007,8 +3007,10 @@ static int decode_ref_pic_list_reordering(H264Context *h){ } for(list=0; list<h->list_count; list++){ for(index= 0; index < h->ref_count[list]; index++){ - if(!h->ref_list[list][index].data[0]) - h->ref_list[list][index]= s->current_picture; + if(!h->ref_list[list][index].data[0]){ + av_log(h->s.avctx, AV_LOG_ERROR, "Missing reference picture\n"); + h->ref_list[list][index]= s->current_picture; //FIXME this is not a sensible solution + } } } |