mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-17 12:30:11 +01:00
ffmpeg: reset dts/pts after decoding the first subpacket
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 6c39b3c278)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
4
ffmpeg.c
4
ffmpeg.c
@@ -2047,6 +2047,10 @@ static int output_packet(InputStream *ist,
|
|||||||
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
avpkt.dts=
|
||||||
|
avpkt.pts= AV_NOPTS_VALUE;
|
||||||
|
|
||||||
// touch data and size only if not EOF
|
// touch data and size only if not EOF
|
||||||
if (pkt) {
|
if (pkt) {
|
||||||
if(ist->st->codec->codec_type != AVMEDIA_TYPE_AUDIO)
|
if(ist->st->codec->codec_type != AVMEDIA_TYPE_AUDIO)
|
||||||
|
|||||||
Reference in New Issue
Block a user