History

avformat/flvenc: use av_dict_iterate

Marvin Scholz committed 3 years ago

Commit b463ef01 parent b7c577c1 file · +2 −2Browse files

Showing the changes to libavformat (1 of 1 file). Show all

Unified · Split

libavformat/flvenc.c+2−2
@@ -277,7 +277,7 @@ static void write_metadata(AVFormatContext *s, unsigned int ts) · 276 unmodified lines
277 int write_duration_filesize = !(flv->flags & FLV_NO_DURATION_FILESIZE);277 int write_duration_filesize = !(flv->flags & FLV_NO_DURATION_FILESIZE);
278 int metadata_count = 0;278 int metadata_count = 0;
279 int64_t metadata_count_pos;279 int64_t metadata_count_pos;
280 AVDictionaryEntry *tag = NULL;280 const AVDictionaryEntry *tag = NULL;
281 281
282 /* write meta_tag */282 /* write meta_tag */
283 avio_w8(pb, FLV_TAG_TYPE_META); // tag type META283 avio_w8(pb, FLV_TAG_TYPE_META); // tag type META
@@ -353,7 +353,7 @@ static void write_metadata(AVFormatContext *s, unsigned int ts) · 69 unmodified lines
353 }353 }
354 354
355 ff_standardize_creation_time(s);355 ff_standardize_creation_time(s);
356 while ((tag = av_dict_get(s->metadata, "", tag, AV_DICT_IGNORE_SUFFIX))) {356 while ((tag = av_dict_iterate(s->metadata, tag))) {
357 if( !strcmp(tag->key, "width")357 if( !strcmp(tag->key, "width")
358 ||!strcmp(tag->key, "height")358 ||!strcmp(tag->key, "height")
359 ||!strcmp(tag->key, "videodatarate")359 ||!strcmp(tag->key, "videodatarate")

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t