Commit 7665da46 authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: update ist->pts in transcode_audio with the audio decoders output.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8ea81805
......@@ -1970,7 +1970,7 @@ static int transcode_audio(InputStream *ist, AVPacket *pkt, int *got_output)
/* if the decoder provides a pts, use it instead of the last packet pts.
the decoder could be delaying output by a packet or more. */
if (decoded_frame->pts != AV_NOPTS_VALUE)
ist->next_pts = decoded_frame->pts;
ist->pts = ist->next_pts = decoded_frame->pts;
/* increment next_pts to use for the case where the input stream does not
have timestamps or there are multiple frames in the packet */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment