In Ogg/CELT, frame_size is found in the same place as the sample_rate and
channels, so we do not need to force the frame_size to be parsed.
---
 libavformat/utils.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index b0e33e1..51a591b 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -1976,9 +1976,6 @@ static int has_codec_parameters(AVCodecContext *avctx)
     switch (avctx->codec_type) {
     case AVMEDIA_TYPE_AUDIO:
         val = avctx->sample_rate && avctx->channels && avctx->sample_fmt != 
AV_SAMPLE_FMT_NONE;
-        if (!avctx->frame_size &&
-             avctx->codec_id == CODEC_ID_CELT))
-            return 0;
         break;
     case AVMEDIA_TYPE_VIDEO:
         val = avctx->width && avctx->pix_fmt != PIX_FMT_NONE;
-- 
1.7.1

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to