HYL_OK3568_LINUX/yocto/meta-rockchip/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.20/0010-HACK-gstmpegvideoparse-Split-every-picture.patch
2025-05-10 21:49:39 +08:00

36 lines
1.2 KiB
Diff

From bfc431b371a0184d107b41f9e4c811465bc66a92 Mon Sep 17 00:00:00 2001
From: Jeffy Chen <jeffy.chen@rock-chips.com>
Date: Fri, 19 Jun 2020 15:16:42 +0800
Subject: [PATCH 10/33] HACK: gstmpegvideoparse: Split every picture
Some decoders(e.g. Rockchip MPP) need it.
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
---
gst/videoparsers/gstmpegvideoparse.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gst/videoparsers/gstmpegvideoparse.c b/gst/videoparsers/gstmpegvideoparse.c
index f8ef31a..2a70f7d 100644
--- a/gst/videoparsers/gstmpegvideoparse.c
+++ b/gst/videoparsers/gstmpegvideoparse.c
@@ -583,6 +583,7 @@ gst_mpegv_parse_process_sc (GstMpegvParse * mpvparse,
GST_LOG_OBJECT (mpvparse, "Couldn't parse picture at offset %d",
mpvparse->pic_offset);
+#if 0
/* if terminating packet is a picture, we need to check if it has same TSN as the picture that is being
terminated. If it does, we need to keep those together, as these packets are two fields of the same
frame */
@@ -600,6 +601,7 @@ gst_mpegv_parse_process_sc (GstMpegvParse * mpvparse,
ret = FALSE;
}
}
+#endif
}
return ret;
--
2.20.1