[FFmpeg-devel] [PATCH] Vorbis-in-Ogg: Do not set timebase to invalid values
Ronald S. Bultje
Sat Jan 29 11:32:15 CET 2011
On Sat, Jan 29, 2011 at 4:46 AM, Jason Garrett-Glaser <jason at x264.com> wrote:
> Maybe it could be done in the wrapper functions, e.g. the utility
> functions, not per-demuxer? ?So it's still done in libav*, but not in
> each codec repeatedly.
Rather, there should be a int
av_stream/format_set_timebase(AVStream/FormatContext *st/*s, int num,
int den) function which returns -1 on invalid values and formats catch
that and error out, similar to avcodec_check_dimensions() (but in lavf
instead of lavc).
More information about the ffmpeg-devel