Commit 0c482091 authored by David Schleef's avatar David Schleef
Browse files

oggstream: Fix parsing of theora size

parent e443ae60
...@@ -343,8 +343,8 @@ setup_theora_mapper (GstOggStream * pad, ogg_packet * packet) ...@@ -343,8 +343,8 @@ setup_theora_mapper (GstOggStream * pad, ogg_packet * packet)
guint8 *data = packet->packet; guint8 *data = packet->packet;
guint w, h, par_d, par_n; guint w, h, par_d, par_n;
w = GST_READ_UINT24_BE (data + 14) & 0xFFFFF0; w = GST_READ_UINT24_BE (data + 14) & 0xFFFFFF;
h = GST_READ_UINT24_BE (data + 17) & 0xFFFFF0; h = GST_READ_UINT24_BE (data + 17) & 0xFFFFFF;
pad->granulerate_n = GST_READ_UINT32_BE (data + 22); pad->granulerate_n = GST_READ_UINT32_BE (data + 22);
pad->granulerate_d = GST_READ_UINT32_BE (data + 26); pad->granulerate_d = GST_READ_UINT32_BE (data + 26);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment