projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
709bec8
)
codecparsers: vp8parser: clear the frame_hdr before parsing.
author
He Junyan
<junyan.he@intel.com>
Wed, 23 Sep 2020 17:24:40 +0000
(
01:24
+0800)
committer
He Junyan
<junyan.he@intel.com>
Fri, 25 Sep 2020 09:07:43 +0000
(17:07 +0800)
Uninited frame_hdr may have garbage and may contain some wrong
results after the parsing process.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1587>
gst-libs/gst/codecparsers/gstvp8parser.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/codecparsers/gstvp8parser.c
b/gst-libs/gst/codecparsers/gstvp8parser.c
index 7176476615ad825b36749710bbf110369d2baaf5..2de34f0b95430d80dc9b681e2ec0c5726110bede 100644
(file)
--- a/
gst-libs/gst/codecparsers/gstvp8parser.c
+++ b/
gst-libs/gst/codecparsers/gstvp8parser.c
@@
-535,6
+535,8
@@
gst_vp8_parser_parse_frame_header (GstVp8Parser * parser,
g_return_val_if_fail (frame_hdr != NULL, GST_VP8_PARSER_ERROR);
g_return_val_if_fail (parser != NULL, GST_VP8_PARSER_ERROR);
+ memset (frame_hdr, 0, sizeof (GstVp8FrameHdr));
+
/* Uncompressed Data Chunk */
gst_byte_reader_init (&br, data, size);