Commit a15430a8 authored by Thiago Santos's avatar Thiago Santos

qtdemux: Fix the max/avg in btrt atom reading

According to ISO media base format, the max bitrate is the
first one, and the avg comes next.
parent 8419df62
......@@ -5401,8 +5401,8 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
if (size < 12)
break;
max_bitrate = QT_UINT32 (avc_data + 0x10);
avg_bitrate = QT_UINT32 (avc_data + 0xc);
max_bitrate = QT_UINT32 (avc_data + 0xc);
avg_bitrate = QT_UINT32 (avc_data + 0x10);
if (!max_bitrate && !avg_bitrate)
break;
......
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