17 Commits (b7a613fbb7d19d93406199290d8461df05086f45)

Author SHA1 Message Date
Leo Ma b7a613fbb7 Improve code quality
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
8 years ago
Jeffer dc0be00732 only search startcode 4 byte(00 00 00 01 standard h264 encoder) in searchAnnexb 8 years ago
Leo Ma 77c692ae39 Merge branch 'master' into master 8 years ago
Jeffer c617aff822 only search startcode 4 byte(00 00 00 01 standard h264 encoder) in searchAnnexb 8 years ago
Leo Ma 84b10e1870 Annexb search optimization
Assume there always be single slice for each video frame when sps and
pps are found. That would promote efficiency on some low-end devices.

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
8 years ago
Leo Ma da8ca49ebb Ignore annexb exception processing
Some devices produce unstandard H.264 slice without startcode. So we
ignore the annexb exception processing since it does not matter for
streaming.

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
8 years ago
begeekmyfriend f6dfbe3f62 Fix audio sampling in FLV muxer Signed-off-by: begeekmyfriend <begeekmyfriend@gmail.com> # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # On branch master # Your branch is up-to-date with 'origin/master'. # # Changes to be committed: # modified: library/src/main/java/net/ossrs/yasea/SrsFlvMuxer.java # 8 years ago
Leo Ma 470b338588 Remove out-of-date comment
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
8 years ago
Leo Ma a0a7321e9c Fix FLV tag buffer overflow
The length of tag should be calculated completly.

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
8 years ago
Leo Ma 6d7e296205 Fix FLV tag buffer overflow
Add header size in encoded stream

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
8 years ago
Leo Ma bbbb29ef7d Fix FLV allocation buffer overflow
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
8 years ago
Leo Ma ad45075ac1 Fix soft encoding mosaic
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
8 years ago
Leo Ma a50396c567 Clear frame cache before close consumer thread
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma 2767ac5400 GC optimization
Reduce the count of garbage collection in data flow and improve the
reusability of the data buffer.

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma 6c44514793 Substitute message handler for exception
Reduce try-catch blocks for the whole project.

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma 766be308ea Seperate RTMP packet
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma adccd4cfb0 Seperate library module from app module
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago