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

Michael Niedermayer michael at niedermayer.cc
Sat Nov 20 22:50:31 EET 2021


On Fri, Nov 19, 2021 at 08:16:52PM +0100, Andreas Rheinhardt wrote:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at 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

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20211120/379764db/attachment.sig>


More information about the ffmpeg-devel mailing list