hc
2023-05-26 a23f51ed7a39e452c1037343a84d7db1ca2c5bd7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 4e60e1a4d833f5138ee75ded68f7f5bfecf0cc6f 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 19/40] 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 6e27dee..2f4b138 100644
--- a/gst/videoparsers/gstmpegvideoparse.c
+++ b/gst/videoparsers/gstmpegvideoparse.c
@@ -579,6 +579,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 */
@@ -596,6 +597,7 @@ gst_mpegv_parse_process_sc (GstMpegvParse * mpvparse,
           ret = FALSE;
       }
     }
+#endif
   }
 
   return ret;
-- 
2.17.1