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:
Yoshi Sugawara 2015-12-29 10:54:43 -05:00
parent 4d2313ed9f
commit 08cc02d11e

View File

@ -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;