diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-07-25 23:36:48 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-07-25 23:36:48 +0000 |
commit | 6edac8e1041499e301b05a86e953334b40c2c986 (patch) | |
tree | 2a6718cb6b76b1c5793511a765df39b7ef70db7d | |
parent | 99157e499c132444bab019519e4e17e5bc177c8e (diff) | |
download | ffmpeg-6edac8e1041499e301b05a86e953334b40c2c986.tar.gz |
Remove mysterious ref->data[0] check.
What the standard calls non-existent is not related to the
value of the data[0] pointer.
Originally committed as revision 14402 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h264.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 4131ae9fa1..c27c745f3a 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -2953,10 +2953,10 @@ static int decode_ref_pic_list_reordering(H264Context *h){ ref = h->short_ref[i]; assert(ref->reference); assert(!ref->long_ref); - if(ref->data[0] != NULL && + if( ref->frame_num == frame_num && (ref->reference & pic_structure) - ) // ignore non-existing pictures by testing data[0] pointer + ) break; } if(i>=0) |