Commit f7696989 authored by Zdenek Kabelac's avatar Zdenek Kabelac

* fix for empty image queue

Originally committed as revision 1342 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 8154d2e0
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment