avformat: do not require frame_size for Speex.
authorJustin Ruggles <justin.ruggles@gmail.com>
Wed, 19 Oct 2011 18:00:06 +0000 (14:00 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Thu, 20 Oct 2011 17:06:16 +0000 (13:06 -0400)
Having it there forces decoding of a frame in order to get frame_size, but it
is not really needed for proper demuxing or decoding.

libavformat/utils.c

index 9735d45..5e3e60b 100644 (file)
@@ -2070,7 +2070,6 @@ static int has_codec_parameters(AVCodecContext *avctx)
              avctx->codec_id == CODEC_ID_MP1 ||
              avctx->codec_id == CODEC_ID_MP2 ||
              avctx->codec_id == CODEC_ID_MP3 ||
-             avctx->codec_id == CODEC_ID_SPEEX ||
              avctx->codec_id == CODEC_ID_CELT))
             return 0;
         break;