[FFmpeg-cvslog] r12132 - trunk/ffmpeg.c
michael
subversion
Sun Feb 17 20:08:15 CET 2008
Author: michael
Date: Sun Feb 17 20:08:15 2008
New Revision: 12132
Log:
Set next_pts to pts if its unknown and pkt->dts isnt known either, this
is needed because next_pts is used to calculate the next pts and adding
to AV_NOPTS_VALUE doesnt achive the intended result.
Modified:
trunk/ffmpeg.c
Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c (original)
+++ trunk/ffmpeg.c Sun Feb 17 20:08:15 2008
@@ -1055,6 +1055,9 @@ static int output_packet(AVInputStream *
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;
More information about the ffmpeg-cvslog
mailing list