[moc/f41] Patch for ffmpeg7, basically from debian with a bit modified