You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-09-16 08:36:51 +02:00
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.
This commit is contained in:
@@ -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),
|
||||
|
Reference in New Issue
Block a user