From b0a9ba4ccf3893f0df8904cf2a26348c4c1ed0ad Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Cerveau?= Date: Wed, 10 Mar 2021 13:10:28 +0100 Subject: [PATCH] mpegvideoparse: do not clip the frame If the current buffer is delta unit such as P or B frame, the buffer should not be clipped and need to let the decoder handle the segment boundary situation. Part-of: --- gst/videoparsers/gstmpegvideoparse.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gst/videoparsers/gstmpegvideoparse.c b/gst/videoparsers/gstmpegvideoparse.c index 3a5c3f9..6e27dee 100644 --- a/gst/videoparsers/gstmpegvideoparse.c +++ b/gst/videoparsers/gstmpegvideoparse.c @@ -999,9 +999,6 @@ gst_mpegv_parse_pre_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame) mpvparse->send_codec_tag = FALSE; } - /* usual clipping applies */ - frame->flags |= GST_BASE_PARSE_FRAME_FLAG_CLIP; - if (mpvparse->send_mpeg_meta) { GstBuffer *buf; -- 2.7.4