Commit 904b25a5 authored by Andreas Rheinhardt's avatar Andreas Rheinhardt

avformat/matroskaenc: Use comparison instead of assignment

This bug was introduced in 3589b3f2.
Fixes Coverity ID 1462425.
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
parent 9025d5c5
...@@ -1733,7 +1733,7 @@ static int mkv_write_attachments(AVFormatContext *s) ...@@ -1733,7 +1733,7 @@ static int mkv_write_attachments(AVFormatContext *s)
const AVCodecDescriptor *desc = avcodec_descriptor_get(st->codecpar->codec_id); const AVCodecDescriptor *desc = avcodec_descriptor_get(st->codecpar->codec_id);
if (desc && desc->mime_types) { if (desc && desc->mime_types) {
mimetype = desc->mime_types[0]; 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"; mimetype = "text/plain";
} }
if (!mimetype) { if (!mimetype) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment