diff mbox series

[FFmpeg-devel,5/5] avcodec/h263: Inline constant

Message ID AM7PR03MB66600BEFBC12591E624059308F9C9@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit 18f22bfb27e4919572b1b0a7f365a494364704f9
Headers show
Series [FFmpeg-devel,1/5] avformat/avformat: Add AVStream parameter to check_bitstream() sig
Related show

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Nov. 19, 2021, 7:16 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/h263.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Niedermayer Nov. 20, 2021, 8:50 p.m. UTC | #1
On Fri, Nov 19, 2021 at 08:16:52PM +0100, Andreas Rheinhardt wrote:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
>  libavcodec/h263.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/h263.h b/libavcodec/h263.h
> index 491f2e0aac..70fd1ffdc0 100644
> --- a/libavcodec/h263.h
> +++ b/libavcodec/h263.h
> @@ -103,7 +103,7 @@ static inline int h263_get_motion_length(int val, int f_code){
>      int l, bit_size, code;
>  
>      if (val == 0) {
> -        return ff_mvtab[0][1];
> +        return 1; /* ff_mvtab[0][1] */
>      } else {
>          bit_size = f_code - 1;
>          /* modulo encoding */

ok but i think this is not used in any speed relevant pathes

thx

[...]
diff mbox series

Patch

diff --git a/libavcodec/h263.h b/libavcodec/h263.h
index 491f2e0aac..70fd1ffdc0 100644
--- a/libavcodec/h263.h
+++ b/libavcodec/h263.h
@@ -103,7 +103,7 @@  static inline int h263_get_motion_length(int val, int f_code){
     int l, bit_size, code;
 
     if (val == 0) {
-        return ff_mvtab[0][1];
+        return 1; /* ff_mvtab[0][1] */
     } else {
         bit_size = f_code - 1;
         /* modulo encoding */