OSDN Git Service

avformat/microdvd: export the declared frame rate
authorwm4 <nfxjfg@googlemail.com>
Sun, 2 Mar 2014 21:36:42 +0000 (22:36 +0100)
committerClément Bœsch <u@pkh.me>
Mon, 3 Mar 2014 22:33:47 +0000 (23:33 +0100)
commitb416517cce6b05bcdd838b8f34a0050e729beec2
treeb39a47944916e8b696529d2f00199075aee5bab0
parent0786598f51ce0811cce7a087ba76fa6fd984327e
avformat/microdvd: export the declared frame rate

MicroDVD files are normally frame-based (i.e. there are no absolute
timestamps), but can have an optional frame rate header. If this
header is missing, the timestamps depend on the frame rate of the
video they were created for.

The demuxer will use a fallback frame rate if it's missing from the
header. Currently, applications using libavformat can't know whether
the time base is based on the fallback value, or if a frame rate
header was present.

This commit introduces a subfps AVOption for MicroDVD, and the
demuxer sets it if and only if a frame rate header was present.

Signed-off-by: Clément Bœsch <u@pkh.me>
libavformat/microdvddec.c
libavformat/version.h