diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-05-06 20:43:37 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-05-06 20:43:37 +0000 |
commit | e20c40697cb6b40804acac9a92005779382c6e7e (patch) | |
tree | 16ad773d668050a6c14a85e6ad4abcc7cbea6def /libavcodec/dv.c | |
parent | 61873c4a4436f2c516e14d6a00a2b856fa93f818 (diff) | |
download | ffmpeg-streaming-e20c40697cb6b40804acac9a92005779382c6e7e.zip ffmpeg-streaming-e20c40697cb6b40804acac9a92005779382c6e7e.tar.gz |
release buffer cleanup
Originally committed as revision 1839 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r-- | libavcodec/dv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c index 2d89a3c..32d4c3a 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -580,6 +580,9 @@ static int dvvideo_decode_frame(AVCodecContext *avctx, else avctx->aspect_ratio = 4.0 / 3.0; + if(s->picture.data[0]) + avctx->release_buffer(avctx, &s->picture); + s->picture.reference= 0; if(avctx->get_buffer(avctx, &s->picture) < 0) { fprintf(stderr, "get_buffer() failed\n"); @@ -617,8 +620,6 @@ static int dvvideo_decode_frame(AVCodecContext *avctx, *data_size = sizeof(AVFrame); *(AVFrame*)data= s->picture; - avctx->release_buffer(avctx, &s->picture); - return packet_size; } |