]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dxa.c
lavc: Drop deprecated public symbols
[ffmpeg] / libavcodec / dxa.c
index fa0677d34ca5f76768081cbb7649f504fe0b4372..b80493580d03285e4515d24182e6542d15dac0c6 100644 (file)
@@ -309,7 +309,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
     avctx->pix_fmt = AV_PIX_FMT_PAL8;
 
     c->dsize = avctx->width * avctx->height * 2;
-    if((c->decomp_buf = av_malloc(c->dsize)) == NULL) {
+    if (!(c->decomp_buf = av_malloc(c->dsize))) {
         av_log(avctx, AV_LOG_ERROR, "Can't allocate decompression buffer.\n");
         return AVERROR(ENOMEM);
     }
@@ -336,5 +336,5 @@ AVCodec ff_dxa_decoder = {
     .init           = decode_init,
     .close          = decode_end,
     .decode         = decode_frame,
-    .capabilities   = CODEC_CAP_DR1,
+    .capabilities   = AV_CODEC_CAP_DR1,
 };