修复decoder内存泄漏

This commit is contained in:
Barry 2018-11-11 00:08:23 +08:00
commit 1add69c9b8

View file

@ -197,6 +197,7 @@ void Decoder::run()
} }
if (len < 0) { if (len < 0) {
qCritical("Could not decode video packet: %d", len); qCritical("Could not decode video packet: %d", len);
av_packet_unref(&packet);
goto runQuit; goto runQuit;
} }
if (gotPicture) { if (gotPicture) {