We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 393a2d8 commit b7e0ebaCopy full SHA for b7e0eba
1 file changed
src/video_compress/libavcodec.cpp
@@ -3,7 +3,7 @@
3
* @author Martin Pulec <pulec@cesnet.cz>
4
*/
5
/*
6
- * Copyright (c) 2013-2025 CESNET
+ * Copyright (c) 2013-2026 CESNET, zájmové sdružení právnických osob
7
* All rights reserved.
8
*
9
* Redistribution and use in source and binary forms, with or without
@@ -1768,7 +1768,8 @@ static void
1768
setparam_oapv(AVCodecContext */*codec_ctx*/, struct setparam_param *param)
1769
{
1770
auto it = param->lavc_opts.find("oapv-params");
1771
- if (it->second.find("profile=") != std::string::npos) {
+ if (it != param->lavc_opts.end() &&
1772
+ it->second.find("profile=") != std::string::npos) {
1773
return; // do not overwrite profile if set explicitly
1774
}
1775
const char *profile = nullptr;
0 commit comments