aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--libmpcodecs/vf_zrmjpeg.c2
-rw-r--r--libvo/jpeg_enc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libmpcodecs/vf_zrmjpeg.c b/libmpcodecs/vf_zrmjpeg.c
index 69f6d1af2e..75a545fe6d 100644
--- a/libmpcodecs/vf_zrmjpeg.c
+++ b/libmpcodecs/vf_zrmjpeg.c
@@ -390,7 +390,7 @@ static int jpeg_enc_frame(jpeg_enc_t *j, unsigned char *y_data,
mjpeg_picture_header(j->s);
- j->s->header_bits = get_bit_count(&j->s->pb);
+ j->s->header_bits = put_bits_count(&j->s->pb);
j->s->last_dc[0] = 128;
j->s->last_dc[1] = 128;
diff --git a/libvo/jpeg_enc.c b/libvo/jpeg_enc.c
index 7733b39e4b..98ed71fe44 100644
--- a/libvo/jpeg_enc.c
+++ b/libvo/jpeg_enc.c
@@ -382,7 +382,7 @@ int jpeg_enc_frame(jpeg_enc_t *j, unsigned char *y_data,
mjpeg_picture_header(j->s);
- j->s->header_bits = get_bit_count(&j->s->pb);
+ j->s->header_bits = put_bits_count(&j->s->pb);
j->s->last_dc[0] = 128;
j->s->last_dc[1] = 128;