diff --git a/libavcodec/v210enc.c b/libavcodec/v210enc.c
index ccff9728e0352b06b101c9a4ab914bb2899489f1..9a90d243edf9481a43dde090be14c81e18eb0852 100644
--- a/libavcodec/v210enc.c
+++ b/libavcodec/v210enc.c
@@ -124,6 +124,6 @@ AVCodec v210_encoder = {
     encode_init,
     encode_frame,
     encode_close,
-    .pix_fmts = (enum PixelFormat[]){PIX_FMT_YUV422P16, -1},
+    .pix_fmts = (enum PixelFormat[]){PIX_FMT_YUV422P16, PIX_FMT_NONE},
     .long_name = NULL_IF_CONFIG_SMALL("Uncompressed 4:2:2 10-bit"),
 };