audiointerleave: check timebase

Replaces FPE by clean error

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/5/head
Michael Niedermayer 13 years ago
parent ce9bd30379
commit b3ab337227
  1. 4
      libavformat/audiointerleave.c

@ -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…
Cancel
Save