Commit 3165e258 authored by Loren Merritt's avatar Loren Merritt

fix a crash on seeking to an invalid frame

Originally committed as revision 4685 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 4519b8a6
......@@ -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