]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/rawenc.c
SSSE3 versions of vp8 width4 bilinear MC functions
[ffmpeg] / libavcodec / rawenc.c
index 82a543ad468874118fcad27d857827dac337214b..419970486b5304e9193eaa1f7d0c7cad13493240 100644 (file)
  */
 
 /**
- * @file libavcodec/rawenc.c
+ * @file
  * Raw Video Encoder
  */
 
 #include "avcodec.h"
 #include "raw.h"
+#include "libavutil/pixdesc.h"
 #include "libavutil/intreadwrite.h"
 
 static av_cold int raw_init_encoder(AVCodecContext *avctx)
@@ -33,6 +34,7 @@ static av_cold int raw_init_encoder(AVCodecContext *avctx)
     avctx->coded_frame = (AVFrame *)avctx->priv_data;
     avctx->coded_frame->pict_type = FF_I_TYPE;
     avctx->coded_frame->key_frame = 1;
+    avctx->bits_per_coded_sample = av_get_bits_per_pixel(&av_pix_fmt_descriptors[avctx->pix_fmt]);
     if(!avctx->codec_tag)
         avctx->codec_tag = avcodec_pix_fmt_to_codec_tag(avctx->pix_fmt);
     return 0;
@@ -55,7 +57,7 @@ static int raw_encode(AVCodecContext *avctx,
 
 AVCodec rawvideo_encoder = {
     "rawvideo",
-    CODEC_TYPE_VIDEO,
+    AVMEDIA_TYPE_VIDEO,
     CODEC_ID_RAWVIDEO,
     sizeof(AVFrame),
     raw_init_encoder,