1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

For #1685: Cross build RTC with FFmpeg

This commit is contained in:
winlin 2021-06-19 21:55:12 +08:00
parent 1c75a270b3
commit 1e9de0e191
267 changed files with 12603 additions and 1451 deletions

View file

@ -81,8 +81,6 @@ typedef struct {
const uint8_t *bytestream_end;
uint16_t contexts[DIRAC_CTX_COUNT];
int error;
int overread;
} DiracArith;
extern const uint8_t ff_dirac_next_ctx[DIRAC_CTX_COUNT];
@ -120,9 +118,6 @@ static inline void refill(DiracArith *c)
new |= 0xff00;
c->bytestream = c->bytestream_end;
c->overread ++;
if (c->overread > 4)
c->error = AVERROR_INVALIDDATA;
}
c->low += new << counter;
@ -178,7 +173,6 @@ static inline int dirac_get_arith_uint(DiracArith *c, int follow_ctx, int data_c
while (!dirac_get_arith_bit(c, follow_ctx)) {
if (ret >= 0x40000000) {
av_log(NULL, AV_LOG_ERROR, "dirac_get_arith_uint overflow\n");
c->error = AVERROR_INVALIDDATA;
return -1;
}
ret <<= 1;