Commit 5a90ec05 authored by Francois Cartegnie's avatar Francois Cartegnie

mux: mp4: fix NALU size endianness

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