diff options
author | Zdenek Kabelac <kabi@informatics.muni.cz> | 2002-12-19 18:59:45 +0000 |
---|---|---|
committer | Zdenek Kabelac <kabi@informatics.muni.cz> | 2002-12-19 18:59:45 +0000 |
commit | f7696989d9efb71844830f32ea2f2248f0a85868 (patch) | |
tree | 80d9f4a95b6694102bf9d54116acf065cef8d7c3 | |
parent | 8154d2e01a9ef77bb77569e2202a469338c8eefe (diff) | |
download | ffmpeg-f7696989d9efb71844830f32ea2f2248f0a85868.tar.gz |
* fix for empty image queue
Originally committed as revision 1342 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/mpeg12.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 074e10d93a..17a9aec20a 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -1718,7 +1718,7 @@ eos: //end of slice s->picture_number++; /* latency of 1 frame for I and P frames */ /* XXX: use another variable than picture_number */ - if (s->picture_number == 1) { + if (s->last_picture.data[0] == NULL) { return DECODE_SLICE_OK; } else { *pict= *(AVFrame*)&s->last_picture; |