diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-02 03:02:30 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-02 15:34:02 +0200 |
commit | 4e8ee7acb858747b2bcdfb2384f9504df3b00a3a (patch) | |
tree | 0978c80e84b63e000346d706d81f9daba24db087 /libavcodec | |
parent | dc4a6e4d5a4942fc139691f3cf2916d89172e88e (diff) | |
download | ffmpeg-streaming-4e8ee7acb858747b2bcdfb2384f9504df3b00a3a.zip ffmpeg-streaming-4e8ee7acb858747b2bcdfb2384f9504df3b00a3a.tar.gz |
libavcodec/svq3: clarify unknown_flag by renaming to has_watermark
The name is based on how the field is used in the code
Reviewed-by: compn <tempn@mi.rr.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/svq3.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c index 4b418ab..0683b0d 100644 --- a/libavcodec/svq3.c +++ b/libavcodec/svq3.c @@ -78,7 +78,7 @@ typedef struct SVQ3Context { H264Picture *last_pic; int halfpel_flag; int thirdpel_flag; - int unknown_flag; + int has_watermark; int next_slice_index; uint32_t watermark_key; uint8_t *buf; @@ -843,7 +843,7 @@ static int svq3_decode_slice_header(AVCodecContext *avctx) /* unknown fields */ skip_bits1(&h->gb); - if (s->unknown_flag) + if (s->has_watermark) skip_bits1(&h->gb); skip_bits1(&h->gb); @@ -933,7 +933,7 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx) s->halfpel_flag = 1; s->thirdpel_flag = 1; - s->unknown_flag = 0; + s->has_watermark = 0; /* prowl for the "SEQH" marker in the extradata */ extradata = (unsigned char *)avctx->extradata; @@ -1020,9 +1020,9 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx) goto fail; } - s->unknown_flag = get_bits1(&gb); + s->has_watermark = get_bits1(&gb); avctx->has_b_frames = !h->low_delay; - if (s->unknown_flag) { + if (s->has_watermark) { #if CONFIG_ZLIB unsigned watermark_width = svq3_get_ue_golomb(&gb); unsigned watermark_height = svq3_get_ue_golomb(&gb); |