img2: 10l typo
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 7 Dec 2011 02:19:42 +0000 (03:19 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 7 Dec 2011 02:19:42 +0000 (03:19 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/img2.c

index 00c5013..98397f4 100644 (file)
@@ -284,7 +284,7 @@ static int read_header(AVFormatContext *s1, AVFormatParameters *ap)
         s->split_planes = str && !av_strcasecmp(str + 1, "y");
         st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
         st->codec->codec_id = av_str2id(img_tags, s->path);
-        if (st->codec->codec_id = CODEC_ID_LJPEG)
+        if (st->codec->codec_id == CODEC_ID_LJPEG)
             st->codec->codec_id = CODEC_ID_MJPEG;
     }
     if(st->codec->codec_type == AVMEDIA_TYPE_VIDEO && pix_fmt != PIX_FMT_NONE)