mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00: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:
parent
4519b8a672
commit
3165e258b1
@ -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 //?
|
||||
|
Loading…
Reference in New Issue
Block a user