]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/rawenc.c
x86: avcodec: Appropriately name files containing only init functions
[ffmpeg] / libavcodec / rawenc.c
index 8eb818c6184eae2fb4d95fcd5ae8e691c3c95c6b..56edf50649d3ace037a6b3a05a85b2b4b4c01031 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]);
@@ -69,9 +69,9 @@ static int raw_encode(AVCodecContext *avctx, AVPacket *pkt,
 AVCodec ff_rawvideo_encoder = {
     .name           = "rawvideo",
     .type           = AVMEDIA_TYPE_VIDEO,
-    .id             = CODEC_ID_RAWVIDEO,
+    .id             = AV_CODEC_ID_RAWVIDEO,
     .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"),
 };