diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-04-25 00:29:48 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-04-25 00:29:48 +0000 |
commit | d90cf87b907f4f31b65429affe34666de8f84b59 (patch) | |
tree | edae6543471051001a0c70736e5825ec65d64431 /libavcodec/dv.c | |
parent | 5755c27f4717836ec3776f5bee86dea38d8016a8 (diff) | |
download | ffmpeg-streaming-d90cf87b907f4f31b65429affe34666de8f84b59.zip ffmpeg-streaming-d90cf87b907f4f31b65429affe34666de8f84b59.tar.gz |
fixing mixed dr1 + internal buffers
Originally committed as revision 1820 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r-- | libavcodec/dv.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c index eb8dbb7..d686aca 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -624,15 +624,8 @@ static int dvvideo_decode_frame(AVCodecContext *avctx, static int dvvideo_decode_end(AVCodecContext *avctx) { DVVideoDecodeContext *s = avctx->priv_data; - int i; - - if(avctx->get_buffer == avcodec_default_get_buffer){ - for(i=0; i<4; i++){ - av_freep(&s->picture.base[i]); - s->picture.data[i]= NULL; - } - av_freep(&s->picture.opaque); - } + + avcodec_default_free_buffers(avctx); return 0; } |