]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/rawenc.c
png: check bit depth for PAL8/Y400A pixel formats.
[ffmpeg] / libavcodec / rawenc.c
index 8eb818c6184eae2fb4d95fcd5ae8e691c3c95c6b..cf12684c4528b0e64a85f75e10ffaa0ef8407513 100644 (file)
@@ -32,7 +32,7 @@
 
 static av_cold int raw_init_encoder(AVCodecContext *avctx)
 {
-    avctx->coded_frame = (AVFrame *)avctx->priv_data;
+    avctx->coded_frame            = avctx->priv_data;
     avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
     avctx->coded_frame->key_frame = 1;
     avctx->bits_per_coded_sample = av_get_bits_per_pixel(&av_pix_fmt_descriptors[avctx->pix_fmt]);
@@ -73,5 +73,5 @@ AVCodec ff_rawvideo_encoder = {
     .priv_data_size = sizeof(AVFrame),
     .init           = raw_init_encoder,
     .encode2        = raw_encode,
-    .long_name = NULL_IF_CONFIG_SMALL("raw video"),
+    .long_name      = NULL_IF_CONFIG_SMALL("raw video"),
 };