• Anton Khirnov's avatar
    ffmpeg: do packet ts rescaling in write_packet() · 4ee5aed1
    Anton Khirnov authored
    This will be useful in the following commit, after which the muxer
    timebase is not always available when encoding.
    
    This merges Libav commit 3e265ca5. It was previously skipped.
    
    There are some changes with how/when the mux_timebase field is set,
    because the Libav approach often causes a too imprecise time base
    to be set. This is hard, because the muxer's write_header function
    can readjust the timebase, at which point we might already have
    encoded packets buffered. (It might be better to buffer them after
    the encoder, instead of after all the timestamp handling logic
    before muxing.)
    
    The two FATE tests change because the output time base is raised
    for subtitles. (Needed to avoid certain rounding issues in other
    cases.)
    
    Includes a minor merge fix by Mark Thompson, and
    
        avconv: Move rescale to stream timebase before monotonisation
    
    also by Mark Thompson <sw@jkqxz.net>.
    Signed-off-by: 's avatarwm4 <nfxjfg@googlemail.com>
    4ee5aed1
binsub-movtextenc 33 Bytes