changeset 933:8254eac24488 libavcodec

* fix for empty image queue
author kabi
date Thu, 19 Dec 2002 18:59:45 +0000
parents 176fd8c8e8a8
children 159333d9297e
files mpeg12.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpeg12.c	Wed Dec 18 10:09:43 2002 +0000
+++ b/mpeg12.c	Thu Dec 19 18:59:45 2002 +0000
@@ -1718,7 +1718,7 @@
             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;