[FFmpeg-cvslog] ffv1: rename minor to micro version
Michael Niedermayer
git at videolan.org
Tue Aug 20 03:48:31 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Aug 20 03:30:36 2013 +0200| [d9b0b54a5f8bcd7f8fb01d6d008d3798a20dc43b] | committer: Michael Niedermayer
ffv1: rename minor to micro version
the version is 1.3.4 which makes 4 micro and not minor
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d9b0b54a5f8bcd7f8fb01d6d008d3798a20dc43b
---
libavcodec/ffv1.h | 2 +-
libavcodec/ffv1dec.c | 8 ++++----
libavcodec/ffv1enc.c | 4 ++--
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/libavcodec/ffv1.h b/libavcodec/ffv1.h
index 914eb10..9221cc1 100644
--- a/libavcodec/ffv1.h
+++ b/libavcodec/ffv1.h
@@ -83,7 +83,7 @@ typedef struct FFV1Context {
uint64_t rc_stat[256][2];
uint64_t (*rc_stat2[MAX_QUANT_TABLES])[32][2];
int version;
- int minor_version;
+ int micro_version;
int width, height;
int chroma_planes;
int chroma_h_shift, chroma_v_shift;
diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c
index e5aac29..658c717 100644
--- a/libavcodec/ffv1dec.c
+++ b/libavcodec/ffv1dec.c
@@ -382,7 +382,7 @@ static int decode_slice(AVCodecContext *c, void *arg)
y = fs->slice_y;
if (!fs->ac) {
- if (f->version == 3 && f->minor_version > 1 || f->version > 3)
+ if (f->version == 3 && f->micro_version > 1 || f->version > 3)
get_rac(&fs->c, (uint8_t[]) { 129 });
fs->ac_byte_count = f->version > 2 || (!x && !y) ? fs->c.bytestream - fs->c.bytestream_start - 1 : 0;
init_get_bits(&fs->gb,
@@ -485,7 +485,7 @@ static int read_extra_header(FFV1Context *f)
f->version = get_symbol(c, state, 0);
if (f->version > 2) {
c->bytestream_end -= 4;
- f->minor_version = get_symbol(c, state, 0);
+ f->micro_version = get_symbol(c, state, 0);
}
f->ac = f->avctx->coder_type = get_symbol(c, state, 0);
if (f->ac > 1) {
@@ -536,7 +536,7 @@ static int read_extra_header(FFV1Context *f)
if (f->version > 2) {
f->ec = get_symbol(c, state, 0);
- if (f->minor_version > 2)
+ if (f->micro_version > 2)
f->intra = get_symbol(c, state, 0);
}
@@ -553,7 +553,7 @@ static int read_extra_header(FFV1Context *f)
if (f->avctx->debug & FF_DEBUG_PICT_INFO)
av_log(f->avctx, AV_LOG_DEBUG,
"global: ver:%d.%d, coder:%d, colorspace: %d bpr:%d chroma:%d(%d:%d), alpha:%d slices:%dx%d qtabs:%d ec:%d intra:%d\n",
- f->version, f->minor_version,
+ f->version, f->micro_version,
f->ac,
f->colorspace,
f->avctx->bits_per_raw_sample,
diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c
index cc9a1a9..faf64ca 100644
--- a/libavcodec/ffv1enc.c
+++ b/libavcodec/ffv1enc.c
@@ -537,8 +537,8 @@ static int write_extradata(FFV1Context *f)
put_symbol(c, state, f->version, 0);
if (f->version > 2) {
if (f->version == 3)
- f->minor_version = 4;
- put_symbol(c, state, f->minor_version, 0);
+ f->micro_version = 4;
+ put_symbol(c, state, f->micro_version, 0);
}
put_symbol(c, state, f->ac, 0);
More information about the ffmpeg-cvslog
mailing list