mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
set pts and dts when only pts is present, according to specs
Originally committed as revision 16734 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
6e4668b8a9
commit
14120c95f0
@ -888,7 +888,7 @@ static void mpegts_push_data(MpegTSFilter *filter,
|
||||
pes->pts = AV_NOPTS_VALUE;
|
||||
pes->dts = AV_NOPTS_VALUE;
|
||||
if ((flags & 0xc0) == 0x80) {
|
||||
pes->pts = get_pts(r);
|
||||
pes->dts = pes->pts = get_pts(r);
|
||||
r += 5;
|
||||
} else if ((flags & 0xc0) == 0xc0) {
|
||||
pes->pts = get_pts(r);
|
||||
|
Loading…
Reference in New Issue
Block a user