]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vcr1.c
huffyuv: switch to encode2().
[ffmpeg] / libavcodec / vcr1.c
index 9eb6a72875f10f4999154bc96fe8c3943ec596b1..e50e092c7eca0dc1c6608adb2f4740842d476707 100644 (file)
@@ -114,8 +114,6 @@ static int decode_frame(AVCodecContext *avctx,
     *picture= *(AVFrame*)&a->picture;
     *data_size = sizeof(AVPicture);
 
-    emms_c();
-
     return buf_size;
 }
 
@@ -130,9 +128,7 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size,
     p->pict_type= AV_PICTURE_TYPE_I;
     p->key_frame= 1;
 
-    emms_c();
-
-    align_put_bits(&a->pb);
+    avpriv_align_put_bits(&a->pb);
     while(get_bit_count(&a->pb)&31)
         put_bits(&a->pb, 8, 0);
 
@@ -196,7 +192,6 @@ AVCodec ff_vcr1_encoder = {
     .priv_data_size = sizeof(VCR1Context),
     .init           = encode_init,
     .encode         = encode_frame,
-    //encode_end,
     .long_name = NULL_IF_CONFIG_SMALL("ATI VCR1"),
 };
 #endif