zhaohappy/libmedia

peakU() mothod not found

Closed this issue ยท 1 comments

Thanks again for your provided example for adding packet event ๐Ÿ™๐Ÿ™‡

When I added the logic above and re-compile, I found that:

  1. There lacked some ts files in the src/common/math/ (e.g. align.ts, median.ts, crc8.ts) which only exist in the later-version in your common repo, so I copied them into src/common/math/ and re-compiled, then the file-not-found errors solved.
  2. In the /src/avformat/codecs/ac3.ts, line 211:
info.bitstreamId = bitReader.peekU() & 0x1f

the peekU() method was not found, after I replaced with peekU1(), which is defined in the BitReader class, the method-not-found error solved. I am not a very experienced open-source collaborator, hence not sure this trivial issue is whether worthful to create a individual PR to fix it so I decided to post it as an issue first.

It looks like you didn't sync the submodule of common when you pull libmedia. Yon can use git pull --recurse-submodules to sync libmedia with all submodules or execute git submodule update --recursive after use git pull to sync libmedia. You can check out the git commands of submodule for details.