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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue