]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
fix two issues in transcoding code from PR#1121
authorJaroslav Kysela <perex@perex.cz>
Wed, 20 Jun 2018 12:25:26 +0000 (14:25 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 20 Jun 2018 12:51:10 +0000 (14:51 +0200)
src/transcoding/codec/codec.c
src/transcoding/transcode/context.c

index 54d7dc2a761d44c702e464270f1a21582f4807dd..9a8598b03a1a9ce6d8ed6cdeb4a4364e73eec263 100644 (file)
@@ -102,7 +102,7 @@ codec_get_title(AVCodec *self)
         str_snprintf(codec_title, sizeof(codec_title),
             self->long_name ? "%s: %s%s" : "%s%s%s",
             self->name, self->long_name ? self->long_name : "",
-            (self->capabilities & CODEC_CAP_EXPERIMENTAL) ? " (Experimental)" : "")
+            (self->capabilities & AV_CODEC_CAP_EXPERIMENTAL) ? " (Experimental)" : "")
        ) {
         return NULL;
     }
index f333b32f5036680cdd413f66f58a238d58c97b0f..8e4534095d37f5281f18fff39b5088e795ea60e4 100644 (file)
@@ -498,7 +498,7 @@ tvh_context_open_filters(TVHContext *self,
     struct {
         const AVClass *class;
     } logctx = { &logclass };
-    AVFilter *iavflt = NULL, *oavflt = NULL;
+    const AVFilter *iavflt = NULL, *oavflt = NULL;
     AVFilterInOut *iavfltio = NULL, *oavfltio = NULL;
     AVBufferSrcParameters *par = NULL;
     int i, ret = -1;