[FFmpeg-cvslog] roqaudioenc: remove dead code
Michael Niedermayer
git at videolan.org
Thu Oct 25 01:39:24 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Oct 25 01:01:17 2012 +0200| [a1af505d6640a89401f8e9941a38352a1ca49d58] | committer: Michael Niedermayer
roqaudioenc: remove dead code
Fixes CID703669
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a1af505d6640a89401f8e9941a38352a1ca49d58
---
libavcodec/roqaudioenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/roqaudioenc.c b/libavcodec/roqaudioenc.c
index bbf9b97..ed5481f 100644
--- a/libavcodec/roqaudioenc.c
+++ b/libavcodec/roqaudioenc.c
@@ -168,7 +168,7 @@ static int roq_dpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
context->lastSample[1] &= 0xFF00;
}
- if (context->input_frames == 7 || !in)
+ if (context->input_frames == 7)
data_size = avctx->channels * context->buffered_samples;
else
data_size = avctx->channels * avctx->frame_size;
More information about the ffmpeg-cvslog
mailing list