2017-12-29 19:12 GMT+01:00 Devin Heitmueller <dheitmueller at ltnglobal.com>: > + uint8_t *outbuf = NULL; > + if (st->codecpar->codec_id == AV_CODEC_ID_AC3) > + av_free(outbuf); The "if()" should not be necessary, free() and av_free() may be called with argument "NULL". Carl Eugen