• wm4's avatar
    avformat/microdvd: export the declared frame rate · b416517c
    wm4 authored
    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: 's avatarClément Bœsch <u@pkh.me>
    b416517c
version.h 2.76 KB