avformat/matroskaenc: Simplify check for writing CRCs
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 19 Apr 2019 23:41:01 +0000 (01:41 +0200)
committerJames Almer <jamrial@gmail.com>
Wed, 8 May 2019 16:02:29 +0000 (13:02 -0300)
commit30d07c74dbd9384e50535cfedde5237114a81bee
treee7ee9b0694257ceb909477006ffea13ab4a049ba
parent01506e6b663948c9e3666c6d35f7830f397ab78a
avformat/matroskaenc: Simplify check for writing CRCs

Up until now, the check for whether to write CRC32 elements was always
mkv->write_crc && mkv->mode != MODE_WEBM. This is equivalent to simply
set write_crc to zero in WebM-mode. And this is what this commit does.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/matroskaenc.c