Commit f1dcc944 authored by lorenm's avatar lorenm

fix a crash on seeking to an invalid frame


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4685 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7c50c641
......@@ -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 //?
......
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