diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-04-22 03:42:00 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-04-22 03:45:44 +0200 |
commit | 904b25a550cbdcffc22b6d6744da232dc1d6c54f (patch) | |
tree | c5219f185176ad6178681a858666f1df4e4a9a7c /libavformat | |
parent | 9025d5c5ce3d4bbeb793500951ea7773ed293e61 (diff) | |
download | ffmpeg-904b25a550cbdcffc22b6d6744da232dc1d6c54f.tar.gz |
avformat/matroskaenc: Use comparison instead of assignment
This bug was introduced in 3589b3f2e217e78d16a92b372d95ce4a3f7df896.
Fixes Coverity ID 1462425.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/matroskaenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 0034e225ef..784973a951 100644 --- a/libavformat/matroskaenc.c +++ b/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) { |