avformat/matroskaenc: Use comparison instead of assignment

This bug was introduced in 3589b3f2e2.
Fixes Coverity ID 1462425.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
Andreas Rheinhardt 2020-04-22 03:42:00 +02:00
parent 9025d5c5ce
commit 904b25a550

View File

@ -1733,7 +1733,7 @@ static int mkv_write_attachments(AVFormatContext *s)
const AVCodecDescriptor *desc = avcodec_descriptor_get(st->codecpar->codec_id);
if (desc && desc->mime_types) {
mimetype = desc->mime_types[0];
} else if (st->codecpar->codec_id = AV_CODEC_ID_TEXT)
} else if (st->codecpar->codec_id == AV_CODEC_ID_TEXT)
mimetype = "text/plain";
}
if (!mimetype) {