diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-07-18 20:59:17 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-07-18 20:59:17 +0000 |
commit | 197ea524433322064ebcbeee437c8695b01aab00 (patch) | |
tree | 35eadb7d43c9b2c88f8338e6c89a682b017b927e | |
parent | 44eb047a5bdb06511c334e67a309d69509855453 (diff) | |
download | ffmpeg-197ea524433322064ebcbeee437c8695b01aab00.tar.gz |
Make frames non reference by default, so they are disposed of automatically
in MPV_frame_start() if we break out due to an error at a random place.
Fixes issue334
Originally committed as revision 14283 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h264.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index ebdfc8c3e5..862e7a0da5 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -2259,6 +2259,7 @@ static int frame_start(H264Context *h){ memset(h->slice_table, -1, (s->mb_height*s->mb_stride-1) * sizeof(uint8_t)); // s->decode= (s->flags&CODEC_FLAG_PSNR) || !s->encoding || s->current_picture.reference /*|| h->contains_intra*/ || 1; + s->current_picture_ptr->reference= 0; return 0; } |