]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Fix vaapi patch
authorfatfred <iphone@fatfred.net>
Sat, 10 Oct 2020 19:31:23 +0000 (21:31 +0200)
committerFlole998 <Flole998@users.noreply.github.com>
Mon, 12 Oct 2020 10:32:27 +0000 (12:32 +0200)
support/patches/ffmpeg.vaapi_encode.diff

index 690c822fff56f9b9f717c45c2c8707f040fdd79a..ef862789d2e2c2b5e7aae881383bea7f5707fba3 100644 (file)
@@ -1,24 +1,25 @@
 diff -urN ../ffmpeg-3.1.3.orig/libavcodec/vaapi_encode.c ./libavcodec/vaapi_encode.c
 --- ../ffmpeg-3.1.3.orig/libavcodec/vaapi_encode.c     2016-06-27 01:54:29.000000000 +0200
 +++ ./libavcodec/vaapi_encode.c        2016-08-31 11:53:21.159413291 +0200
-@@ -26,6 +26,7 @@
+@@ -26,6 +26,8 @@
  
  #include "vaapi_encode.h"
  #include "avcodec.h"
 +#include "internal.h"
++#include "packet_internal.h"
  
- static const char *picture_type_name[] = { "IDR", "I", "P", "B" };
-@@ -395,7 +396,7 @@
-     VAAPIEncodeContext *ctx = avctx->priv_data;
-     VACodedBufferSegment *buf_list, *buf;
+ const AVCodecHWConfigInternal *ff_vaapi_encode_hw_configs[] = {
+     HW_CONFIG_ENCODER_FRAMES(VAAPI, VAAPI),
+@@ -586,7 +588,7 @@ static int vaapi_encode_output(AVCodecCo
      VAStatus vas;
+     int total_size = 0;
+     uint8_t *ptr;
 -    int err;
 +    int err, pict_type;
  
      err = vaapi_encode_wait(avctx, pic);
      if (err < 0)
-@@ -427,6 +428,28 @@
+@@ -624,6 +626,28 @@ static int vaapi_encode_output(AVCodecCo
  
      pkt->pts = pic->pts;