Display and control your Android device
Fix memory leak on error
Romain Vimont5c739874a413
diff --git a/app/src/decoder.c b/app/src/decoder.cindex 9e90e4b7..d26d4cf8 100644--- a/app/src/decoder.c+++ b/app/src/decoder.c@@ -115,6 +115,7 @@ static int run_decoder(void *data) {int len = avcodec_decode_video2(codec_ctx, decoder->frames->decoding_frame, &got_picture, &packet);if (len < 0) {LOGE("Could not decode video packet: %d", len);+ av_packet_unref(&packet);goto run_quit;}if (got_picture) {