diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 991452f9ee8d4509093cee7f8868fc1f2f9b7dcf..1420e6f08519787dea2099b14cc05d629c113190 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -592,7 +592,7 @@ static int mov_find_codec_tag(AVFormatContext *s, MOVTrack *track)
              tag == MKTAG('t','e','x','t')))
             track->tag = tag; // keep original tag
         else
-        tag = codec_get_tag(codec_ipod_tags, track->enc->codec_id);
+            tag = codec_get_tag(codec_ipod_tags, track->enc->codec_id);
         if (!match_ext(s->filename, "m4a") && !match_ext(s->filename, "m4v"))
             av_log(s, AV_LOG_WARNING, "Warning, extension is not .m4a nor .m4v "
                    "Quicktime/Ipod might not play the file\n");