mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-26 20:50:34 +00:00
!284 [Bug]: annexb起始码统一修改为0001
Merge pull request !284 from Bojack/1015Annexb
This commit is contained in:
commit
cabdff1a06
@ -49,8 +49,11 @@ typedef struct H264BSFContext {
|
||||
static void count_or_copy(uint8_t **out, uint64_t *out_size,
|
||||
const uint8_t *in, int in_size, int ps, int copy)
|
||||
{
|
||||
#ifdef OHOS_OPT_COMPAT
|
||||
uint8_t start_code_size = ps < 0 ? 0 : 4;
|
||||
#else
|
||||
uint8_t start_code_size = ps < 0 ? 0 : *out_size == 0 || ps ? 4 : 3;
|
||||
|
||||
#endif
|
||||
if (copy) {
|
||||
memcpy(*out + start_code_size, in, in_size);
|
||||
if (start_code_size == 4) {
|
||||
|
Loading…
Reference in New Issue
Block a user