Commit 5a90ec05 authored by François Cartegnie's avatar François Cartegnie 🤞

mux: mp4: fix NALU size endianness

parent fbdacb6a
......@@ -753,10 +753,7 @@ static block_t *ConvertFromAnnexB(block_t *p_block)
/* Fix size */
int i_size = dat - &last[4];
last[0] = (i_size >> 24)&0xff;
last[1] = (i_size >> 16)&0xff;
last[2] = (i_size >> 8)&0xff;
last[3] = (i_size )&0xff;
SetDWBE((uint32_t*) last, i_size);
/* Skip blocks with SPS/PPS */
//if ((last[4]&0x1f) == 7 || (last[4]&0x1f) == 8)
......
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