# HG changeset patch # User kabi # Date 1040324385 0 # Node ID 8254eac2448831ad65dc45c97ff256e789a018b7 # Parent 176fd8c8e8a8ebb6e9ca2e79b878ee76d171c92a * fix for empty image queue diff -r 176fd8c8e8a8 -r 8254eac24488 mpeg12.c --- 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;