Revision 11d058b7 libavformat/oggparsetheora.c

View differences:

libavformat/oggparsetheora.c
86 86
        }
87 87
        st->codec->time_base.den = get_bits_long(&gb, 32);
88 88
        st->codec->time_base.num = get_bits_long(&gb, 32);
89
        if (!(st->codec->time_base.num > 0 && st->codec->time_base.den > 0)) {
90
            av_log(s, AV_LOG_WARNING, "Invalid time base in theora stream, assuming 25 FPS\n");
91
            st->codec->time_base.num = 1;
92
            st->codec->time_base.den = 25;
93
        }
89 94
        st->time_base = st->codec->time_base;
90 95

  
91 96
        st->sample_aspect_ratio.num = get_bits_long(&gb, 24);

Also available in: Unified diff