You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avformat/wtvenc: use av_dict_iterate
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
committed by
Andreas Rheinhardt
parent
2b5391b88f
commit
b31c16d625
@@ -670,12 +670,12 @@ static void write_table_entries_attrib(AVFormatContext *s)
|
|||||||
{
|
{
|
||||||
WtvContext *wctx = s->priv_data;
|
WtvContext *wctx = s->priv_data;
|
||||||
AVIOContext *pb = s->pb;
|
AVIOContext *pb = s->pb;
|
||||||
AVDictionaryEntry *tag = 0;
|
const AVDictionaryEntry *tag = NULL;
|
||||||
|
|
||||||
ff_standardize_creation_time(s);
|
ff_standardize_creation_time(s);
|
||||||
//FIXME: translate special tags (e.g. WM/Bitrate) to binary representation
|
//FIXME: translate special tags (e.g. WM/Bitrate) to binary representation
|
||||||
ff_metadata_conv(&s->metadata, ff_asf_metadata_conv, NULL);
|
ff_metadata_conv(&s->metadata, ff_asf_metadata_conv, NULL);
|
||||||
while ((tag = av_dict_get(s->metadata, "", tag, AV_DICT_IGNORE_SUFFIX)))
|
while ((tag = av_dict_iterate(s->metadata, tag)))
|
||||||
write_tag(pb, tag->key, tag->value);
|
write_tag(pb, tag->key, tag->value);
|
||||||
|
|
||||||
if (wctx->thumbnail.size) {
|
if (wctx->thumbnail.size) {
|
||||||
@@ -698,11 +698,11 @@ static void write_table_redirector_legacy_attrib(AVFormatContext *s)
|
|||||||
{
|
{
|
||||||
WtvContext *wctx = s->priv_data;
|
WtvContext *wctx = s->priv_data;
|
||||||
AVIOContext *pb = s->pb;
|
AVIOContext *pb = s->pb;
|
||||||
AVDictionaryEntry *tag = 0;
|
const AVDictionaryEntry *tag = NULL;
|
||||||
int64_t pos = 0;
|
int64_t pos = 0;
|
||||||
|
|
||||||
//FIXME: translate special tags to binary representation
|
//FIXME: translate special tags to binary representation
|
||||||
while ((tag = av_dict_get(s->metadata, "", tag, AV_DICT_IGNORE_SUFFIX))) {
|
while ((tag = av_dict_iterate(s->metadata, tag))) {
|
||||||
avio_wl64(pb, pos);
|
avio_wl64(pb, pos);
|
||||||
pos += metadata_header_size(tag->key) + strlen(tag->value)*2 + 2;
|
pos += metadata_header_size(tag->key) + strlen(tag->value)*2 + 2;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user