Skip to content

Commit 7e31679

Browse files
author
seydx
committed
Update patches
1 parent 7afbd89 commit 7e31679

2 files changed

Lines changed: 31 additions & 1 deletion

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Index: FFmpeg/libavcodec/rkmppenc.c
2+
===================================================================
3+
--- FFmpeg.orig/libavcodec/rkmppenc.c
4+
+++ FFmpeg/libavcodec/rkmppenc.c
5+
@@ -1005,9 +1005,9 @@ static int rkmpp_get_packet(AVCodecContext *avctx, AVPacket *packet, int timeout
6+
7+
mpp_meta_get_s32(mpp_meta, KEY_ENC_AVERAGE_QP, &avg_qp);
8+
if (avg_qp >= 0)
9+
- ff_side_data_set_encoder_stats(packet, avg_qp * FF_QP2LAMBDA, NULL, 0,
10+
- (packet->flags & AV_PKT_FLAG_KEY) ?
11+
- AV_PICTURE_TYPE_I : AV_PICTURE_TYPE_P);
12+
+ ff_encode_add_stats_side_data(packet, avg_qp * FF_QP2LAMBDA, NULL, 0,
13+
+ (packet->flags & AV_PKT_FLAG_KEY) ?
14+
+ AV_PICTURE_TYPE_I : AV_PICTURE_TYPE_P);
15+
16+
if ((ret = mpp_meta_get_frame(mpp_meta, KEY_INPUT_FRAME, &mpp_frame)) != MPP_OK) {
17+
av_log(avctx, AV_LOG_ERROR, "Failed to get key input frame from packet meta: %d\n", ret);
18+
Index: FFmpeg/libavcodec/rkmppenc.h
19+
===================================================================
20+
--- FFmpeg.orig/libavcodec/rkmppenc.h
21+
+++ FFmpeg/libavcodec/rkmppenc.h
22+
@@ -33,7 +33,6 @@
23+
#include "encode.h"
24+
#include "hwconfig.h"
25+
#include "internal.h"
26+
-#include "packet_internal.h"
27+
28+
#include "libavutil/hwcontext_rkmpp.h"
29+
#include "libavutil/mem.h"

patches/jellyfin/series

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,5 @@
8282
1006-fix-rtp-ssrc.patch
8383
1007-add-sdp-direction-attribute-support.patch
8484
1008-add-sdp-fmtp-and-mimetype-support.patch
85-
1009-hevc-parameter-sets.patch
85+
1009-hevc-parameter-sets.patch
86+
1010-fix-rkmpp-sidedata.patch

0 commit comments

Comments
 (0)