mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-25 04:30:02 +00:00
audiointerleave: check timebase
Replaces FPE by clean error Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ce9bd30379
commit
b3ab337227
@ -47,6 +47,10 @@ int ff_audio_interleave_init(AVFormatContext *s,
|
||||
if (!samples_per_frame)
|
||||
return -1;
|
||||
|
||||
if (!time_base.num) {
|
||||
av_log(s, AV_LOG_ERROR, "timebase not set for audio interleave\n");
|
||||
return -1;
|
||||
}
|
||||
for (i = 0; i < s->nb_streams; i++) {
|
||||
AVStream *st = s->streams[i];
|
||||
AudioInterleaveContext *aic = st->priv_data;
|
||||
|
Loading…
Reference in New Issue
Block a user