diff mbox

[FFmpeg-devel] avcodec/vp3data: use more compact data type

Message ID 4eff9f21222ed0911183019e79f2be87c52fa185.1546861356.git.pross@xvid.org
State Accepted
Commit 2659a0fe36327233a5f2f3968d638d061ecbba39
Headers show

Commit Message

Peter Ross Jan. 7, 2019, 11:45 a.m. UTC
---
this table is used at vp3_decode_init time, and is needlessly uint32_t.
will push in a day or so.

 libavcodec/vp3data.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Niedermayer Jan. 7, 2019, 7:22 p.m. UTC | #1
On Mon, Jan 07, 2019 at 10:45:02PM +1100, Peter Ross wrote:
> ---
> this table is used at vp3_decode_init time, and is needlessly uint32_t.
> will push in a day or so.
> 
>  libavcodec/vp3data.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/vp3data.h b/libavcodec/vp3data.h
> index 3884bca878..c82b1b3a86 100644
> --- a/libavcodec/vp3data.h
> +++ b/libavcodec/vp3data.h
> @@ -73,7 +73,7 @@ static const uint8_t vp31_dc_scale_factor[64] = {
>       20,  10,  10,  10,  10,  10,  10,  10
>  };
>  
> -static const uint32_t vp31_ac_scale_factor[64] = {
> +static const uint16_t vp31_ac_scale_factor[64] = {

LGTM

thx

[...]
diff mbox

Patch

diff --git a/libavcodec/vp3data.h b/libavcodec/vp3data.h
index 3884bca878..c82b1b3a86 100644
--- a/libavcodec/vp3data.h
+++ b/libavcodec/vp3data.h
@@ -73,7 +73,7 @@  static const uint8_t vp31_dc_scale_factor[64] = {
      20,  10,  10,  10,  10,  10,  10,  10
 };
 
-static const uint32_t vp31_ac_scale_factor[64] = {
+static const uint16_t vp31_ac_scale_factor[64] = {
     500, 450, 400, 370, 340, 310, 285, 265,
     245, 225, 210, 195, 185, 180, 170, 160,
     150, 145, 135, 130, 125, 115, 110, 107,