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>
pull/336/head
Andreas Rheinhardt 5 years ago
parent 9025d5c5ce
commit 904b25a550
  1. 2
      libavformat/matroskaenc.c

@ -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) {

Loading…
Cancel
Save