# HG changeset patch # User lorenm # Date 1131597649 0 # Node ID e63bbb945ebd463579b4ba9748da0e7e37a494f9 # Parent 0c8eec04b26cabcbbd67202f3903a43ca1dc5a68 fix a crash on seeking to an invalid frame diff -r 0c8eec04b26c -r e63bbb945ebd h264.c --- a/h264.c Wed Nov 09 19:18:20 2005 +0000 +++ b/h264.c Thu Nov 10 04:40:49 2005 +0000 @@ -7731,10 +7731,13 @@ h->delayed_output_pic = out; #endif - *pict= *(AVFrame*)out; - } - - assert(pict->data[0]); + if(out) + *pict= *(AVFrame*)out; + else + av_log(avctx, AV_LOG_DEBUG, "no picture\n"); + } + + assert(pict->data[0] || !*data_size); ff_print_debug_info(s, pict); //printf("out %d\n", (int)pict->data[0]); #if 0 //?