avformat/hlsenc: Fix initial setting for start_pts
authorHongcheng Zhong <sj.hc_Zhong@sjtu.edu.cn>
Fri, 6 Mar 2020 03:58:22 +0000 (11:58 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Thu, 12 Mar 2020 05:00:29 +0000 (13:00 +0800)
commit5c72bb62a97fa6ae407ca55184fc0519e641f727
tree997e213410eb655008364736078df34d6628d47c
parent1812352d767ccf5431aa440123e2e260a4db2726
avformat/hlsenc: Fix initial setting for start_pts

This patch fixes Bug #8469
If x264 baseline profile is used with other profiles,
start_pts will be initialized to audio stream's first pts,
while the duration is calculated based on video stream's pts.
In this patch the start_pts is initialized with the correct stream's first pts.

Signed-off-by: Hongcheng Zhong <sj.hc_Zhong@sjtu.edu.cn>
Reviewed-by: Steven Liu <liuqi05@kuaishou.com>
libavformat/hlsenc.c