alexeyvasilyev / rtsp-client-android

Lightweight RTSP client library for Android
Apache License 2.0
210 stars 54 forks source link

Exception of getInputBuffer not caught #27

Closed Fruchtzwerg94 closed 2 years ago

Fruchtzwerg94 commented 2 years ago

I've noticed a potential crash due to a not caught exception in

https://github.com/alexeyvasilyev/rtsp-client-android/blob/89dfb21c8bd5199eac8e89762b05640cd25df0a3/library-client-rtsp/src/main/java/com/alexvas/rtsp/codec/VideoDecodeThread.kt#L62

public ByteBuffer getInputBuffer (int index) could throw a MediaCodec.CodecException which is currently uncaught.

I've added a handler in #28 I hope I've missed nothing here.

alexeyvasilyev commented 2 years ago

Implemented in 2.0.3.