Unref the packet on error
Do not leak the packet data on error.
This commit is contained in:
parent
a34fbd23e9
commit
f9562f537a
1 changed files with 1 additions and 0 deletions
|
@ -106,6 +106,7 @@ static int run_decoder(void *data) {
|
|||
push_frame(decoder);
|
||||
} else if (ret != AVERROR(EAGAIN)) {
|
||||
LOGE("Could not receive video frame: %d", ret);
|
||||
av_packet_unref(&packet);
|
||||
goto run_quit;
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue