mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-20 14:16:17 +08:00
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
This commit is contained in:
3
ffmpeg.c
3
ffmpeg.c
@ -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;
|
||||||
|
Reference in New Issue
Block a user