mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-17 13:34:20 +01:00
Unref the packet on error
Do not leak the packet data on error.
This commit is contained in:
@@ -106,6 +106,7 @@ static int run_decoder(void *data) {
|
|||||||
push_frame(decoder);
|
push_frame(decoder);
|
||||||
} else if (ret != AVERROR(EAGAIN)) {
|
} else if (ret != AVERROR(EAGAIN)) {
|
||||||
LOGE("Could not receive video frame: %d", ret);
|
LOGE("Could not receive video frame: %d", ret);
|
||||||
|
av_packet_unref(&packet);
|
||||||
goto run_quit;
|
goto run_quit;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user