[moc] Bugfix for building against ffmpeg 5+