Skip to content

Display and control your Android device

Do not leak the packet data

Romain Vimonta34fbd23e99b
diff --git a/app/src/decoder.c b/app/src/decoder.c
index da1408de..6faaa830 100644
--- a/app/src/decoder.c
+++ b/app/src/decoder.c
@@ -123,6 +123,7 @@ static int run_decoder(void *data) {
packet.data += len;
}
#endif
+ av_packet_unref(&packet);
}
LOGD("End of frames");