fix a crash on seeking to an invalid frame

Originally committed as revision 4685 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Loren Merritt 19 years ago
parent 4519b8a672
commit 3165e258b1
  1. 7
      libavcodec/h264.c

@ -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…
Cancel
Save