avformat/movenc: Remove unneeded variable from mov_find_codec_tag()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -1611,8 +1611,6 @@ static unsigned int validate_codec_tag(const AVCodecTag *const *tags,
|
|||||||
|
|
||||||
static unsigned int mov_find_codec_tag(AVFormatContext *s, MOVTrack *track)
|
static unsigned int mov_find_codec_tag(AVFormatContext *s, MOVTrack *track)
|
||||||
{
|
{
|
||||||
unsigned int tag;
|
|
||||||
|
|
||||||
if (is_cover_image(track->st))
|
if (is_cover_image(track->st))
|
||||||
return ff_codec_get_tag(codec_cover_image_tags, track->par->codec_id);
|
return ff_codec_get_tag(codec_cover_image_tags, track->par->codec_id);
|
||||||
|
|
||||||
@@ -1623,12 +1621,11 @@ static unsigned int mov_find_codec_tag(AVFormatContext *s, MOVTrack *track)
|
|||||||
av_log(s, AV_LOG_WARNING, "Warning, extension is not .m4a nor .m4v "
|
av_log(s, AV_LOG_WARNING, "Warning, extension is not .m4a nor .m4v "
|
||||||
"Quicktime/Ipod might not play the file\n");
|
"Quicktime/Ipod might not play the file\n");
|
||||||
|
|
||||||
if (track->mode == MODE_MOV)
|
if (track->mode == MODE_MOV) {
|
||||||
tag = mov_get_codec_tag(s, track);
|
return mov_get_codec_tag(s, track);
|
||||||
else
|
} else
|
||||||
tag = validate_codec_tag(s->oformat->codec_tag, track->par->codec_tag,
|
return validate_codec_tag(s->oformat->codec_tag, track->par->codec_tag,
|
||||||
track->par->codec_id);
|
track->par->codec_id);
|
||||||
return tag;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Write uuid atom.
|
/** Write uuid atom.
|
||||||
|
Reference in New Issue
Block a user