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