Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
| ... | ... |
@@ -284,7 +284,7 @@ static int read_header(AVFormatContext *s1, AVFormatParameters *ap) |
| 284 | 284 |
s->split_planes = str && !av_strcasecmp(str + 1, "y"); |
| 285 | 285 |
st->codec->codec_type = AVMEDIA_TYPE_VIDEO; |
| 286 | 286 |
st->codec->codec_id = av_str2id(img_tags, s->path); |
| 287 |
- if (st->codec->codec_id = CODEC_ID_LJPEG) |
|
| 287 |
+ if (st->codec->codec_id == CODEC_ID_LJPEG) |
|
| 288 | 288 |
st->codec->codec_id = CODEC_ID_MJPEG; |
| 289 | 289 |
} |
| 290 | 290 |
if(st->codec->codec_type == AVMEDIA_TYPE_VIDEO && pix_fmt != PIX_FMT_NONE) |