mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-24 16:49:50 +00:00
removed spacing around pCodecCtx conditional check, added else clause to log that it was NULL when it was not expected to be
This commit is contained in:
parent
4d2313ed9f
commit
08cc02d11e
@ -374,11 +374,13 @@ struct Atrac {
|
||||
#else
|
||||
// Future versions may add other things to free, but avcodec_free_context didn't exist yet here.
|
||||
avcodec_close(pCodecCtx);
|
||||
if ( pCodecCtx != NULL ) {
|
||||
if (pCodecCtx != NULL) {
|
||||
av_freep(&pCodecCtx->extradata);
|
||||
av_freep(&pCodecCtx->subtitle_header);
|
||||
av_freep(&pCodecCtx);
|
||||
}
|
||||
} else {
|
||||
ERROR_LOG(ME,"Unexpected: pCodecCtx is NULL");
|
||||
}
|
||||
#endif
|
||||
av_free_packet(packet);
|
||||
delete packet;
|
||||
|
Loading…
Reference in New Issue
Block a user