diff options
author | John Stebbins <[email protected]> | 2018-06-13 15:07:25 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2018-06-13 15:07:25 -0700 |
commit | f1714ec672382862b10b3df7e81a0cb0bcaf34af (patch) | |
tree | 70c004bd6cea04aad0b248c27b204a0554e5d6fa /contrib/yasm | |
parent | c85294a8f0bce69d5cb417f60a143663fb83772a (diff) |
Fix PGS subtitle decoding...
...And add a timebase to every stream.
ffmpeg's subtitle decoder internally converts the packet pts to
AV_TIME_BASE units based on AVCodecContext.pkt_timebase. If
pkt_timebase is not set, the PGS subtitle decoder only returns
AV_NOPTS_VALUE for timestamps. So setting pkt_timebase in decpgssub.c
fixes PGS subtitle decoding.
Confusingly, the subtitle decoder does not convert the pts *back* to the
input timebase, but instead leaves them in AV_TIME_BASE units upon
returning a decoded subtitle.
To get a head start on fixing any other such issues that might arrise, I
have also set pkt_timebase in all other avcodec decoders.
Diffstat (limited to 'contrib/yasm')
0 files changed, 0 insertions, 0 deletions