diff options
author | Steven Liu <lq@chinaffmpeg.org> | 2020-09-18 09:53:27 +0800 |
---|---|---|
committer | liuqi05 <liuqi05@kuaishou.com> | 2020-10-20 11:41:44 +0800 |
commit | b5ca8f2c66954614d81579082025f580efc0cffc (patch) | |
tree | 4bd8f68d598dc48e558124282cf63642015710fd /libavformat/epafdec.c | |
parent | 1ee52b2b6c1f6c9618e435b5ed7608442308efe6 (diff) | |
download | ffmpeg-b5ca8f2c66954614d81579082025f580efc0cffc.tar.gz |
avformat/hlsenc: compute video_keyframe_size after write keyframe
fix ticket: 8636
When write keyframe and the keyframe is the frist packet of the segment,
then compute the size of the keyframe which have been write into segment
first packet. and set the start position of the segment, should not use
avio_tell(vs->out) to get the keyframe position, because it can be set
to 0 if close at above of the workflow, that maybe inaccurate, but the
start_pos can be used here, because start_pos is set after write
the previous packet.
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Signed-off-by: liuqi05 <liuqi05@kuaishou.com>
Diffstat (limited to 'libavformat/epafdec.c')
0 files changed, 0 insertions, 0 deletions