Commit b3ab3372 authored by Michael Niedermayer's avatar Michael Niedermayer

audiointerleave: check timebase

Replaces FPE by clean error
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ce9bd303
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment