[FFmpeg-cvslog] libspeexdec: do not set AVCodecContext.frame_size
Justin Ruggles
git at videolan.org
Tue Mar 6 06:16:01 CET 2012
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Mon Feb 27 11:18:33 2012 -0500| [85469f1c9eb1e678f9d7135dd6bcc1df68072e29] | committer: Justin Ruggles
libspeexdec: do not set AVCodecContext.frame_size
It is not necessary
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=85469f1c9eb1e678f9d7135dd6bcc1df68072e29
---
libavcodec/libspeexdec.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/libavcodec/libspeexdec.c b/libavcodec/libspeexdec.c
index eba2f16..7bff425 100644
--- a/libavcodec/libspeexdec.c
+++ b/libavcodec/libspeexdec.c
@@ -54,9 +54,6 @@ static av_cold int libspeex_decode_init(AVCodecContext *avctx)
if (s->header) {
avctx->sample_rate = s->header->rate;
avctx->channels = s->header->nb_channels;
- avctx->frame_size = s->frame_size = s->header->frame_size;
- if (s->header->frames_per_packet)
- avctx->frame_size *= s->header->frames_per_packet;
mode = speex_lib_get_mode(s->header->mode);
if (!mode) {
More information about the ffmpeg-cvslog
mailing list