diff options
Diffstat (limited to 'libavcodec/options.c')
-rw-r--r-- | libavcodec/options.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/options.c b/libavcodec/options.c index 64b27e5768..ec9830face 100644 --- a/libavcodec/options.c +++ b/libavcodec/options.c @@ -144,7 +144,8 @@ AVCodecContext *avcodec_alloc_context3(const AVCodec *codec) { AVCodecContext *avctx= av_malloc(sizeof(AVCodecContext)); - if(avctx==NULL) return NULL; + if (!avctx) + return NULL; if(avcodec_get_context_defaults3(avctx, codec) < 0){ av_free(avctx); |