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:
He Junyan 2020-09-24 01:24:40 +08:00
parent 709bec8f07
commit d90e353daa

View file

@ -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);