[FFmpeg-devel] [PATCH 8/8] decklink: Add support for compressed AC-3 output over SDI

Carl Eugen Hoyos ceffmpeg at gmail.com
Fri Dec 29 22:59:51 EET 2017

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

More information about the ffmpeg-devel mailing list