1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-01 20:14:49 +02:00

Avoid bit-shifting of -1 value

This commit is contained in:
Paul Licameli
2017-10-11 23:02:10 -04:00
parent c40b254626
commit 0a035b0ffc
3 changed files with 6 additions and 4 deletions

View File

@@ -227,7 +227,7 @@ ExportFFmpeg::ExportFFmpeg()
SetDescription(ExportFFmpegOptions::fmts[newfmt].Description(), fmtindex);
int canmeta = ExportFFmpegOptions::fmts[newfmt].canmetadata;
if (canmeta && (canmeta == AV_VERSION_INT(-1,-1,-1) || canmeta <= avfver))
if (canmeta && (canmeta == AV_CANMETA || canmeta <= avfver))
{
SetCanMetaData(true,fmtindex);
}