[SCM] libav/experimental: Set next_pts to pts if it is unknown and pkt->dts is not known either. This is needed because next_pts is used to calculate the next pts and adding to AV_NOPTS_VALUE does not achieve the intended result.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:15:09 UTC 2013


The following commit has been merged in the experimental branch:
commit ed9238593e4b030e0a27ab6b4279d90d5b017fb2
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Sun Feb 17 19:08:15 2008 +0000

    Set next_pts to pts if it is unknown and pkt->dts is not known either. This
    is needed because next_pts is used to calculate the next pts and adding
    to AV_NOPTS_VALUE does not achieve the intended result.
    
    Originally committed as revision 12132 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/ffmpeg.c b/ffmpeg.c
index 59ce7ca..6a156dc 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1055,6 +1055,9 @@ static int output_packet(AVInputStream *ist, int ist_index,
     AVSubtitle subtitle, *subtitle_to_free;
     int got_subtitle;
 
+    if(ist->next_pts == AV_NOPTS_VALUE)
+        ist->next_pts= ist->pts;
+
     if (pkt == NULL) {
         /* EOF handling */
         ptr = NULL;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list