Mercurial > libavcodec.hg
comparison h264.c @ 2937:e63bbb945ebd libavcodec
fix a crash on seeking to an invalid frame
author | lorenm |
---|---|
date | Thu, 10 Nov 2005 04:40:49 +0000 |
parents | b564bb15e63c |
children | be87ff950242 |
comparison
equal
deleted
inserted
replaced
2936:0c8eec04b26c | 2937:e63bbb945ebd |
---|---|
7729 if(prev && prev != out && prev->reference == 1) | 7729 if(prev && prev != out && prev->reference == 1) |
7730 prev->reference = 0; | 7730 prev->reference = 0; |
7731 h->delayed_output_pic = out; | 7731 h->delayed_output_pic = out; |
7732 #endif | 7732 #endif |
7733 | 7733 |
7734 *pict= *(AVFrame*)out; | 7734 if(out) |
7735 } | 7735 *pict= *(AVFrame*)out; |
7736 | 7736 else |
7737 assert(pict->data[0]); | 7737 av_log(avctx, AV_LOG_DEBUG, "no picture\n"); |
7738 } | |
7739 | |
7740 assert(pict->data[0] || !*data_size); | |
7738 ff_print_debug_info(s, pict); | 7741 ff_print_debug_info(s, pict); |
7739 //printf("out %d\n", (int)pict->data[0]); | 7742 //printf("out %d\n", (int)pict->data[0]); |
7740 #if 0 //? | 7743 #if 0 //? |
7741 | 7744 |
7742 /* Return the Picture timestamp as the frame number */ | 7745 /* Return the Picture timestamp as the frame number */ |