Showing the changes to libavformat (1 of 1 file). Show all
Unified · Split
| @@ -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 META | 283 | 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") |