1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

fix a crash on seeking to an invalid frame

Originally committed as revision 4685 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Loren Merritt 2005-11-10 04:40:49 +00:00
parent 4519b8a672
commit 3165e258b1

View File

@ -7731,10 +7731,13 @@ static int decode_frame(AVCodecContext *avctx,
h->delayed_output_pic = out;
#endif
*pict= *(AVFrame*)out;
if(out)
*pict= *(AVFrame*)out;
else
av_log(avctx, AV_LOG_DEBUG, "no picture\n");
}
assert(pict->data[0]);
assert(pict->data[0] || !*data_size);
ff_print_debug_info(s, pict);
//printf("out %d\n", (int)pict->data[0]);
#if 0 //?