]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/v210dec.c
ARM: allow runtime masking of CPU features
[ffmpeg] / libavcodec / v210dec.c
index 37b4a3c42301744949afef1c70957bdb91d35d0a..5f74828d4ea373595c6b3d7c78817f147cff49a3 100644 (file)
@@ -34,6 +34,8 @@ static av_cold int decode_init(AVCodecContext *avctx)
     avctx->bits_per_raw_sample = 10;
 
     avctx->coded_frame         = avcodec_alloc_frame();
+    if (!avctx->coded_frame)
+        return AVERROR(ENOMEM);
 
     return 0;
 }
@@ -128,5 +130,5 @@ AVCodec ff_v210_decoder = {
     .close          = decode_close,
     .decode         = decode_frame,
     .capabilities   = CODEC_CAP_DR1,
-    .long_name = NULL_IF_CONFIG_SMALL("Uncompressed 4:2:2 10-bit"),
+    .long_name      = NULL_IF_CONFIG_SMALL("Uncompressed 4:2:2 10-bit"),
 };