mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-29 18:53:02 +00:00
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:
parent
9025d5c5ce
commit
904b25a550
@ -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…
Reference in New Issue
Block a user