From e8733cc4d9b866643009342ec6839795a059fe53 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 21 May 2004 14:40:35 +0000 Subject: more data_size=0 cleanup Originally committed as revision 3147 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mdec.c | 2 -- libavcodec/pcm.c | 1 - 2 files changed, 3 deletions(-) (limited to 'libavcodec') diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c index 219a39b257..ef4e6ec0a9 100644 --- a/libavcodec/mdec.c +++ b/libavcodec/mdec.c @@ -163,8 +163,6 @@ static int decode_frame(AVCodecContext *avctx, AVFrame * const p= (AVFrame*)&a->picture; int i; - *data_size = 0; - /* special case for last picture */ if (buf_size == 0) { return 0; diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index a6c0d343b0..4c999b4302 100644 --- a/libavcodec/pcm.c +++ b/libavcodec/pcm.c @@ -334,7 +334,6 @@ static int pcm_decode_frame(AVCodecContext *avctx, } break; default: - *data_size = 0; return -1; } *data_size = (uint8_t *)samples - (uint8_t *)data; -- cgit v1.2.3