mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-17 04:20:10 +01:00
ignore damaged video frames
Originally committed as revision 2692 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
4
ffplay.c
4
ffplay.c
@@ -913,8 +913,8 @@ static int video_thread(void *arg)
|
|||||||
len1 = avcodec_decode_video(&is->video_st->codec,
|
len1 = avcodec_decode_video(&is->video_st->codec,
|
||||||
frame, &got_picture,
|
frame, &got_picture,
|
||||||
pkt->data, pkt->size);
|
pkt->data, pkt->size);
|
||||||
if (len1 < 0)
|
// if (len1 < 0)
|
||||||
break;
|
// break;
|
||||||
if (got_picture) {
|
if (got_picture) {
|
||||||
if (output_picture2(is, frame, pts) < 0)
|
if (output_picture2(is, frame, pts) < 0)
|
||||||
goto the_end;
|
goto the_end;
|
||||||
|
|||||||
Reference in New Issue
Block a user