Skip to content

Commit

Permalink
Fixed #99
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyvasilyev committed Dec 25, 2024
1 parent 8796f8b commit 23c3652
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ buildscript {
ext.compile_sdk_version = 35
ext.min_sdk_version = 24
ext.target_sdk_version = 35
ext.project_version_code = 532
ext.project_version_name = '5.3.2'
ext.project_version_code = 533
ext.project_version_name = '5.3.3'

repositories {
google()
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 1 addition & 1 deletion library-client-rtsp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ android {

dependencies {
implementation 'androidx.annotation:annotation:1.9.1'
implementation 'androidx.media3:media3-exoplayer:1.5.0'
implementation 'androidx.media3:media3-exoplayer:1.5.1'
implementation 'androidx.camera:camera-core:1.4.1' // YUV -> BMP conversion
implementation 'org.jcodec:jcodec:0.2.5' // SPS frame modification
}
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ object VideoCodecUtils {
val nalUnitIndex = searchForNalUnitStart(data, off, length, nalUnitPrefixSize)
if (nalUnitIndex >= 0) {
val nalUnitOffset = nalUnitIndex + nalUnitPrefixSize.get()
if (nalUnitOffset >= data.size)
break
val nalUnitTypeOctet = data[nalUnitOffset]
if ((nalUnitTypeOctet and 0x1f).toInt() == byUnitType) {
return nalUnitIndex
Expand Down Expand Up @@ -304,6 +306,8 @@ object VideoCodecUtils {

if (nalUnitIndex >= 0) {
val nalUnitOffset = nalUnitIndex + nalUnitPrefixSize.get()
if (nalUnitOffset >= data.size)
return false
val nalUnitTypeOctet = data[nalUnitOffset]

if (isH265) {
Expand Down

0 comments on commit 23c3652

Please sign in to comment.