mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 02:12:28 +00:00
lavc/mediacodecdec_h264: fix SODB escaping
Fixes escaping of consecutive 0x00, 0x00, 0x0{0-3} sequences.
This commit is contained in:
parent
207d78176f
commit
f574012d5f
@ -104,9 +104,9 @@ static int h264_ps_to_nalu(const uint8_t *src, int src_size, uint8_t **out, int
|
||||
}
|
||||
*out = p = new;
|
||||
|
||||
i = i + 3;
|
||||
memmove(p + i, p + i - 1, *out_size - i);
|
||||
p[i - 1] = 0x03;
|
||||
i = i + 2;
|
||||
memmove(p + i + 1, p + i, *out_size - (i + 1));
|
||||
p[i] = 0x03;
|
||||
}
|
||||
}
|
||||
done:
|
||||
|
Loading…
Reference in New Issue
Block a user