aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-05-21 14:40:35 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-05-21 14:40:35 +0000
commite8733cc4d9b866643009342ec6839795a059fe53 (patch)
tree8102a0494006f678af09d256073504919c30e262
parent53db1cae1c2d555d207563e0197809faf23b3dcc (diff)
downloadffmpeg-e8733cc4d9b866643009342ec6839795a059fe53.tar.gz
more data_size=0 cleanup
Originally committed as revision 3147 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/mdec.c2
-rw-r--r--libavcodec/pcm.c1
2 files changed, 0 insertions, 3 deletions
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;