diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-02-08 16:15:47 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-02-08 16:15:47 +0100 |
commit | 7665da46ce454b9ce619241375639947d58e9c43 (patch) | |
tree | 8dadd91e962eaad221d7b825275a0790eb19630e /ffmpeg.c | |
parent | 8ea81805d4bcc4b6e56c8bbbdc24c0bd753ca287 (diff) |
ffmpeg: update ist->pts in transcode_audio with the audio decoders output.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |