summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;