avformat: do not require frame_size in avformat_find_stream_info() for CELT
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.
This commit is contained in:
parent
fbc8c59679
commit
9c365fe8ae
@ -2018,9 +2018,6 @@ static int has_codec_parameters(AVCodecContext *avctx)
|
|||||||
switch (avctx->codec_type) {
|
switch (avctx->codec_type) {
|
||||||
case AVMEDIA_TYPE_AUDIO:
|
case AVMEDIA_TYPE_AUDIO:
|
||||||
val = avctx->sample_rate && avctx->channels && avctx->sample_fmt != AV_SAMPLE_FMT_NONE;
|
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;
|
break;
|
||||||
case AVMEDIA_TYPE_VIDEO:
|
case AVMEDIA_TYPE_VIDEO:
|
||||||
val = avctx->width && avctx->pix_fmt != PIX_FMT_NONE;
|
val = avctx->width && avctx->pix_fmt != PIX_FMT_NONE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user