Commit 28c9ec2f authored by michael's avatar michael

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.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12132 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 33f3625e
...@@ -1055,6 +1055,9 @@ static int output_packet(AVInputStream *ist, int ist_index, ...@@ -1055,6 +1055,9 @@ static int output_packet(AVInputStream *ist, int ist_index,
AVSubtitle subtitle, *subtitle_to_free; AVSubtitle subtitle, *subtitle_to_free;
int got_subtitle; int got_subtitle;
if(ist->next_pts == AV_NOPTS_VALUE)
ist->next_pts= ist->pts;
if (pkt == NULL) { if (pkt == NULL) {
/* EOF handling */ /* EOF handling */
ptr = NULL; ptr = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment