mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-31 09:20:58 +02:00
libeplayer3: fix __inline is not at beginning of declaration [-Wold-style-declaration]
Origin commit data
------------------
Branch: master
Commit: cd9c052a67
Author: max_10 <max_10@gmx.de>
Date: 2019-11-11 (Mon, 11 Nov 2019)
Origin message was:
------------------
- libeplayer3: fix __inline is not at beginning of declaration [-Wold-style-declaration]
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
19
libeplayer3/external/flv2mpeg4/src/bitwriter.h
vendored
19
libeplayer3/external/flv2mpeg4/src/bitwriter.h
vendored
@@ -40,21 +40,21 @@ typedef struct _BW
|
||||
} BW;
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
static void __inline clear_bw(BW *p)
|
||||
static inline void clear_bw(BW *p)
|
||||
{
|
||||
p->pos = 0;
|
||||
p->bitoffset = 0;
|
||||
p->tmp = 0;
|
||||
}
|
||||
|
||||
static void __inline init_bw(BW *p, uint8 *buf, uint32 size)
|
||||
static inline void init_bw(BW *p, uint8 *buf, uint32 size)
|
||||
{
|
||||
p->buf = buf;
|
||||
p->size = size;
|
||||
clear_bw(p);
|
||||
}
|
||||
|
||||
static void __inline forword_bits(BW *p, uint32 bits)
|
||||
static inline void forword_bits(BW *p, uint32 bits)
|
||||
{
|
||||
p->bitoffset += bits;
|
||||
|
||||
@@ -70,7 +70,7 @@ static void __inline forword_bits(BW *p, uint32 bits)
|
||||
}
|
||||
}
|
||||
|
||||
static void __inline put_bits(BW *p, uint32 bits, uint32 value)
|
||||
static inline void put_bits(BW *p, uint32 bits, uint32 value)
|
||||
{
|
||||
uint32 shift = 32 - p->bitoffset - bits;
|
||||
|
||||
@@ -90,7 +90,7 @@ static void __inline put_bits(BW *p, uint32 bits, uint32 value)
|
||||
}
|
||||
}
|
||||
|
||||
static void __inline pad_to_boundary(BW *p)
|
||||
static inline void pad_to_boundary(BW *p)
|
||||
{
|
||||
uint32 bits = 8 - (p->bitoffset % 8);
|
||||
if (bits < 8)
|
||||
@@ -99,7 +99,7 @@ static void __inline pad_to_boundary(BW *p)
|
||||
}
|
||||
}
|
||||
|
||||
static void __inline flash_bw(BW *p)
|
||||
static inline void flash_bw(BW *p)
|
||||
{
|
||||
pad_to_boundary(p);
|
||||
|
||||
@@ -120,7 +120,6 @@ static void __inline flash_bw(BW *p)
|
||||
p->buf[p->pos++] = (p->tmp >> 8) & 0xff;
|
||||
break;
|
||||
default:
|
||||
// fprintf(stderr, "flash_bw error!(%d)\n", p->bitoffset);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -128,18 +127,18 @@ static void __inline flash_bw(BW *p)
|
||||
p->bitoffset = 0;
|
||||
}
|
||||
|
||||
static uint32 __inline get_bw_pos(BW *p)
|
||||
static inline uint32 get_bw_pos(BW *p)
|
||||
{
|
||||
return p->pos * 8 + p->bitoffset;
|
||||
}
|
||||
|
||||
static void __inline put_vlcdec(BW *bw, VLCDEC *vlcdec)
|
||||
static inline void put_vlcdec(BW *bw, VLCDEC *vlcdec)
|
||||
{
|
||||
put_bits(bw, vlcdec->bits, vlcdec->value);
|
||||
}
|
||||
|
||||
// M4V ADDED
|
||||
static void __inline m4v_stuffing(BW *p)
|
||||
static inline void m4v_stuffing(BW *p)
|
||||
{
|
||||
int length;
|
||||
|
||||
|
Reference in New Issue
Block a user