mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
codecparsers: vp8parser: clear the frame_hdr before parsing.
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>
This commit is contained in:
parent
709bec8f07
commit
d90e353daa
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue