mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
lavf/latmenc: Error out for unsupported codecs.
This commit is contained in:
parent
70c8c8a818
commit
978880c803
@ -89,6 +89,10 @@ static int latm_write_header(AVFormatContext *s)
|
||||
|
||||
if (par->codec_id == AV_CODEC_ID_AAC_LATM)
|
||||
return 0;
|
||||
if (par->codec_id != AV_CODEC_ID_AAC && par->codec_id != AV_CODEC_ID_MP4ALS) {
|
||||
av_log(ctx, AV_LOG_ERROR, "Only AAC, LATM and ALS are supported\n");
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
|
||||
if (par->extradata_size > 0 &&
|
||||
latm_decode_extradata(ctx, par->extradata, par->extradata_size) < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user