You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat: do not require frame_size in avformat_find_stream_info() for AAC
We already will get the needed info because of CODEC_CAP_CHANNEL_CONF
This commit is contained in:
@@ -2019,7 +2019,6 @@ static int has_codec_parameters(AVCodecContext *avctx)
|
|||||||
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 &&
|
if (!avctx->frame_size &&
|
||||||
(avctx->codec_id == CODEC_ID_AAC ||
|
|
||||||
avctx->codec_id == CODEC_ID_MP1 ||
|
avctx->codec_id == CODEC_ID_MP1 ||
|
||||||
avctx->codec_id == CODEC_ID_MP2 ||
|
avctx->codec_id == CODEC_ID_MP2 ||
|
||||||
avctx->codec_id == CODEC_ID_MP3 ||
|
avctx->codec_id == CODEC_ID_MP3 ||
|
||||||
|
Reference in New Issue
Block a user