Unified · Split
| @@ -277,7 +277,7 @@ static void write_metadata(AVFormatContext *s, unsigned int ts) · 276 unmodified lines | ||
| 277 | 277 | int write_duration_filesize = !(flv->flags & FLV_NO_DURATION_FILESIZE); |
| 278 | 278 | int metadata_count = 0; |
| 279 | 279 | int64_t metadata_count_pos; |
| 280 | − AVDictionaryEntry *tag = NULL; | |
| 280 | + const AVDictionaryEntry *tag = NULL; | |
| 281 | 281 | |
| 282 | 282 | /* write meta_tag */ |
| 283 | 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 | 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 | 357 | if( !strcmp(tag->key, "width") |
| 358 | 358 | ||!strcmp(tag->key, "height") |
| 359 | 359 | ||!strcmp(tag->key, "videodatarate") |