[FFmpeg-cvslog] ffmpeg: update ist->pts in transcode_audio with the audio decoders output.

Michael Niedermayer git at videolan.org
Wed Feb 8 16:28:39 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Feb  8 16:15:47 2012 +0100| [7665da46ce454b9ce619241375639947d58e9c43] | committer: Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7665da46ce454b9ce619241375639947d58e9c43
---

 ffmpeg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 0954195..8ce352f 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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 */



More information about the ffmpeg-cvslog mailing list