[FFmpeg-cvslog] ffmpeg: trivial simplification

Michael Niedermayer git at videolan.org
Sat Oct 27 00:30:56 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Oct 26 21:21:29 2012 +0200| [03e44bcb3ff199fb4f7f043242979da80c75fec0] | committer: Michael Niedermayer

ffmpeg: trivial simplification

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

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

 ffmpeg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 4b4fac8..7dc4a3e 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1730,7 +1730,7 @@ static int output_packet(InputStream *ist, const AVPacket *pkt)
     if (pkt->dts != AV_NOPTS_VALUE) {
         ist->next_dts = ist->dts = av_rescale_q(pkt->dts, ist->st->time_base, AV_TIME_BASE_Q);
         if (ist->st->codec->codec_type != AVMEDIA_TYPE_VIDEO || !ist->decoding_needed)
-            ist->next_pts = ist->pts = av_rescale_q(pkt->dts, ist->st->time_base, AV_TIME_BASE_Q);
+            ist->next_pts = ist->pts = ist->dts;
     }
 
     // while we have more to decode or while the decoder did output something on EOF



More information about the ffmpeg-cvslog mailing list