Skip to content

Commit f347955

Browse files
committed
fix
1 parent e7c833f commit f347955

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/com/github/serezhka/jap2server/internal/handler/audio/AudioHandler.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ protected void channelRead0(ChannelHandlerContext ctx, DatagramPacket msg) throw
6565

6666
log.debug("Got audio packet. flag: {}, type: {}, length: {}", flag, type, contentLength);
6767

68+
if (!aacDecoderInitialized) {
69+
return;
70+
}
71+
6872
if (type == 96 || type == 86) {
6973
int off = 0;
7074
if (type == 86) {

0 commit comments

Comments
 (0)