Commit ca2ec98c authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

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.
parent 1acb5ca0
...@@ -43,7 +43,6 @@ static av_cold int libspeex_decode_init(AVCodecContext *avctx) ...@@ -43,7 +43,6 @@ static av_cold int libspeex_decode_init(AVCodecContext *avctx)
SpeexHeader *header = NULL; SpeexHeader *header = NULL;
int spx_mode; int spx_mode;
avctx->sample_fmt = AV_SAMPLE_FMT_NONE;
if (avctx->extradata && avctx->extradata_size >= 80) { if (avctx->extradata && avctx->extradata_size >= 80) {
header = speex_packet_to_header(avctx->extradata, header = speex_packet_to_header(avctx->extradata,
avctx->extradata_size); avctx->extradata_size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment