mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
codecparsers: fix offset issue in h263 parse
This commit is contained in:
parent
70390ad846
commit
052d1ace5e
1 changed files with 3 additions and 2 deletions
|
@ -524,7 +524,7 @@ gst_h263_parse (GstMpeg4Packet * packet,
|
|||
gint off1, off2;
|
||||
GstByteReader br;
|
||||
|
||||
gst_byte_reader_init (&br, data, size);
|
||||
gst_byte_reader_init (&br, data + offset, size - offset);
|
||||
|
||||
g_return_val_if_fail (packet != NULL, GST_MPEG4_PARSER_ERROR);
|
||||
|
||||
|
@ -541,9 +541,10 @@ gst_h263_parse (GstMpeg4Packet * packet,
|
|||
return GST_MPEG4_PARSER_NO_PACKET;
|
||||
}
|
||||
|
||||
packet->offset = off1;
|
||||
packet->offset = off1 + offset;
|
||||
packet->data = data;
|
||||
|
||||
gst_byte_reader_skip (&br, 3);
|
||||
off2 = find_psc (&br);
|
||||
|
||||
if (off2 == -1) {
|
||||
|
|
Loading…
Reference in a new issue