mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-24 00:27:51 +08:00
* fix for empty image queue
Originally committed as revision 1342 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -1718,7 +1718,7 @@ eos: //end of slice
|
|||||||
s->picture_number++;
|
s->picture_number++;
|
||||||
/* latency of 1 frame for I and P frames */
|
/* latency of 1 frame for I and P frames */
|
||||||
/* XXX: use another variable than picture_number */
|
/* XXX: use another variable than picture_number */
|
||||||
if (s->picture_number == 1) {
|
if (s->last_picture.data[0] == NULL) {
|
||||||
return DECODE_SLICE_OK;
|
return DECODE_SLICE_OK;
|
||||||
} else {
|
} else {
|
||||||
*pict= *(AVFrame*)&s->last_picture;
|
*pict= *(AVFrame*)&s->last_picture;
|
||||||
|
Reference in New Issue
Block a user