mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-21 14:26:59 +00:00
lavc/ac3dec: fail when the sample rate is unset
This commit is contained in:
parent
94aa70d757
commit
3dc7a9f623
@ -1716,6 +1716,11 @@ skip:
|
||||
avctx->bit_rate = s->bit_rate + s->prev_bit_rate;
|
||||
}
|
||||
|
||||
if (!avctx->sample_rate) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Could not determine the sample rate\n");
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
|
||||
for (ch = 0; ch < EAC3_MAX_CHANNELS; ch++)
|
||||
extended_channel_map[ch] = ch;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user