Commit 55da88c5 authored by Diego Biurrun's avatar Diego Biurrun
Browse files

vcr1enc: Replace obsolete get_bit_count by put_bits_count/flush_put_bits.

parent 5aad8e80
...@@ -151,6 +151,9 @@ AVCodec ff_vcr1_decoder = { ...@@ -151,6 +151,9 @@ AVCodec ff_vcr1_decoder = {
#define CONFIG_VCR1_ENCODER 0 #define CONFIG_VCR1_ENCODER 0
#if CONFIG_VCR1_ENCODER #if CONFIG_VCR1_ENCODER
#include "put_bits.h"
static int encode_frame(AVCodecContext *avctx, unsigned char *buf, static int encode_frame(AVCodecContext *avctx, unsigned char *buf,
int buf_size, void *data) int buf_size, void *data)
{ {
...@@ -164,10 +167,9 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, ...@@ -164,10 +167,9 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf,
p->key_frame = 1; p->key_frame = 1;
avpriv_align_put_bits(&a->pb); avpriv_align_put_bits(&a->pb);
while (get_bit_count(&a->pb) & 31) flush_put_bits(&a->pb);
put_bits(&a->pb, 8, 0);
size = get_bit_count(&a->pb) / 32; size = put_bits_count(&a->pb) / 32;
return size * 4; return size * 4;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment