The branch, master has been updated
via 07ea3b1787b88481823c850e92c8828fc270b25b (commit)
from 57a29f2e7dd2374a1df27316c6cf7c0225e86758 (commit)
- Log -----------------------------------------------------------------
commit 07ea3b1787b88481823c850e92c8828fc270b25b
Author: Zhao Zhili <[email protected]>
AuthorDate: Mon Sep 15 21:39:42 2025 +0800
Commit: Zhao Zhili <[email protected]>
CommitDate: Tue Sep 16 02:52:20 2025 +0000
avformat/flvenc: fix event_flags check
AVFormatContext.event_flags is checked against AVSTREAM_EVENT_FLAG,
which belongs to AVStream.event_flags. There is no real issue since
these two flags have the same value.
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c
index 570717320c..a0503c1799 100644
--- a/libavformat/flvenc.c
+++ b/libavformat/flvenc.c
@@ -1270,9 +1270,9 @@ static int flv_write_packet(AVFormatContext *s, AVPacket
*pkt)
ts = pkt->dts;
- if (s->event_flags & AVSTREAM_EVENT_FLAG_METADATA_UPDATED) {
+ if (s->event_flags & AVFMT_EVENT_FLAG_METADATA_UPDATED) {
write_metadata(s, ts);
- s->event_flags &= ~AVSTREAM_EVENT_FLAG_METADATA_UPDATED;
+ s->event_flags &= ~AVFMT_EVENT_FLAG_METADATA_UPDATED;
}
avio_write_marker(pb, av_rescale(ts, AV_TIME_BASE, 1000),
-----------------------------------------------------------------------
Summary of changes:
libavformat/flvenc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]