From ca2ec98cbe1f0e690cac6f6a8c9b9fedd58c10f5 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Fri, 30 May 2014 07:38:19 +0200 Subject: [PATCH] Do not overwrite the sample format with AV_SAMPLE_FMT_NONE in libspeex_decode_init(). Fixes a regression since ef48ac65 when decoding speex in f4v, reported by irc user massdos. --- libavcodec/libspeexdec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/libspeexdec.c b/libavcodec/libspeexdec.c index 53e06d9b9e..5e149a5d5c 100644 --- a/libavcodec/libspeexdec.c +++ b/libavcodec/libspeexdec.c @@ -43,7 +43,6 @@ static av_cold int libspeex_decode_init(AVCodecContext *avctx) SpeexHeader *header = NULL; int spx_mode; - avctx->sample_fmt = AV_SAMPLE_FMT_NONE; if (avctx->extradata && avctx->extradata_size >= 80) { header = speex_packet_to_header(avctx->extradata, avctx->extradata_size);