mirror of https://git.ffmpeg.org/ffmpeg.git
avidec: trivial simplification regarding av_metadata_set
Originally committed as revision 25814 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
eaa4542b64
commit
d35cdd5719
|
@ -266,12 +266,8 @@ static int avi_read_tag(AVFormatContext *s, AVStream *st, uint32_t tag, uint32_t
|
||||||
|
|
||||||
AV_WL32(key, tag);
|
AV_WL32(key, tag);
|
||||||
|
|
||||||
if(st)
|
return av_metadata_set2(st ? &st->metadata : &s->metadata, key, value,
|
||||||
return av_metadata_set2(&st->metadata, key, value,
|
AV_METADATA_DONT_STRDUP_VAL);
|
||||||
AV_METADATA_DONT_STRDUP_VAL);
|
|
||||||
else
|
|
||||||
return av_metadata_set2(&s->metadata, key, value,
|
|
||||||
AV_METADATA_DONT_STRDUP_VAL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void avi_read_info(AVFormatContext *s, uint64_t end)
|
static void avi_read_info(AVFormatContext *s, uint64_t end)
|
||||||
|
|
Loading…
Reference in New Issue