This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit de4cfe98b64b9edaefe2e7ab9f551d13428f1fbb Author: Stefan Breunig <[email protected]> AuthorDate: Sun Apr 26 09:25:02 2026 +0200 Commit: stevenliu <[email protected]> CommitDate: Tue Jun 23 00:04:42 2026 +0000 avformat/hlsenc: clean up unused keyframe tracking variables --- libavformat/hlsenc.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 7355801728..6376c4e635 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -81,8 +81,6 @@ typedef struct HLSSegment { int discont; int64_t pos; int64_t size; - int64_t keyframe_pos; - int64_t keyframe_size; unsigned var_stream_idx; const char *key_uri; @@ -142,8 +140,6 @@ typedef struct VariantStream { int64_t start_pts; int64_t end_pts; int64_t video_lastpos; - int64_t video_keyframe_pos; - int64_t video_keyframe_size; double duration; // last segment duration computed so far, in seconds int64_t start_pos; // last segment starting position int64_t size; // last segment size @@ -1085,8 +1081,6 @@ static int hls_append_segment(struct AVFormatContext *s, HLSContext *hls, en->duration = duration; en->pos = pos; en->size = size; - en->keyframe_pos = vs->video_keyframe_pos; - en->keyframe_size = vs->video_keyframe_size; if (vs->discontinuity) { en->discont = 1; @@ -2682,12 +2676,6 @@ static int hls_write_packet(AVFormatContext *s, AVPacket *pkt) vs->packets_written++; if (oc->pb) { ret = ff_write_chained(oc, stream_index, pkt, s, 0); - vs->video_keyframe_size += pkt->size; - if ((st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO) && (pkt->flags & AV_PKT_FLAG_KEY)) { - vs->video_keyframe_size = avio_tell(oc->pb); - } else { - vs->video_keyframe_pos = avio_tell(vs->out); - } if (hls->ignore_io_errors) ret = 0; } _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
