Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/multimedia/bino/files/patch-src_media__object.cpp
16461 views
1
media_object.cpp:908:60: error: use of undeclared identifier 'CODEC_CAP_DR1'
2
if (lowres || (codec && (codec->capabilities & CODEC_CAP_DR1)))
3
^
4
media_object.cpp:909:37: error: use of undeclared identifier 'CODEC_FLAG_EMU_EDGE'
5
codec_ctx->flags |= CODEC_FLAG_EMU_EDGE;
6
^
7
8
--- src/media_object.cpp.orig 2016-11-30 19:18:54 UTC
9
+++ src/media_object.cpp
10
@@ -905,8 +905,10 @@ void media_object::open(const std::string &url, const
11
#ifdef FF_API_LOWRES
12
lowres = codec_ctx->lowres;
13
#endif
14
+#ifdef FF_API_EMU_EDGE
15
if (lowres || (codec && (codec->capabilities & CODEC_CAP_DR1)))
16
codec_ctx->flags |= CODEC_FLAG_EMU_EDGE;
17
+#endif
18
}
19
// Find and open the codec. AV_CODEC_ID_TEXT is a special case: it has no decoder since it is unencoded raw data.
20
if (codec_ctx->codec_id != AV_CODEC_ID_TEXT && (!codec || (e = avcodec_open2(codec_ctx, codec, NULL)) < 0))
21
22