Fix build with gcc-3.4.2.
PR: ports/69874 Submitted by: Michael Nottebrock <michaelnottebrock@gmx.net>
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
--- src/libffmpeg/libavcodec/h263.c.orig Sun May 30 19:24:19 2004
|
||||
+++ src/libffmpeg/libavcodec/h263.c Sun Aug 1 12:52:11 2004
|
||||
@@ -66,8 +66,8 @@
|
||||
static int h263p_decode_umotion(MpegEncContext * s, int pred);
|
||||
static int h263_decode_block(MpegEncContext * s, DCTELEM * block,
|
||||
int n, int coded);
|
||||
-static inline int mpeg4_decode_dc(MpegEncContext * s, int n, int *dir_ptr);
|
||||
-static inline int mpeg4_decode_block(MpegEncContext * s, DCTELEM * block,
|
||||
+static int mpeg4_decode_dc(MpegEncContext * s, int n, int *dir_ptr);
|
||||
+static int mpeg4_decode_block(MpegEncContext * s, DCTELEM * block,
|
||||
int n, int coded, int intra, int rvlc);
|
||||
static int h263_pred_dc(MpegEncContext * s, int n, uint16_t **dc_val_ptr);
|
||||
#ifdef CONFIG_ENCODERS
|
||||
@@ -4548,7 +4548,7 @@
|
||||
* @param dir_ptr the prediction direction will be stored here
|
||||
* @return the quantized dc
|
||||
*/
|
||||
-static inline int mpeg4_decode_dc(MpegEncContext * s, int n, int *dir_ptr)
|
||||
+static int mpeg4_decode_dc(MpegEncContext * s, int n, int *dir_ptr)
|
||||
{
|
||||
int level, code;
|
||||
|
||||
@@ -4593,7 +4593,7 @@
|
||||
* decodes a block.
|
||||
* @return <0 if an error occured
|
||||
*/
|
||||
-static inline int mpeg4_decode_block(MpegEncContext * s, DCTELEM * block,
|
||||
+static int mpeg4_decode_block(MpegEncContext * s, DCTELEM * block,
|
||||
int n, int coded, int intra, int rvlc)
|
||||
{
|
||||
int level, i, last, run;
|
||||
@@ -0,0 +1,79 @@
|
||||
--- src/libffmpeg/libavcodec/mpeg12.c.orig Wed Aug 4 17:16:09 2004
|
||||
+++ src/libffmpeg/libavcodec/mpeg12.c Wed Aug 4 17:19:51 2004
|
||||
@@ -65,16 +65,16 @@
|
||||
int component);
|
||||
static void mpeg1_encode_motion(MpegEncContext *s, int val, int f_or_b_code); // RAL: f_code parameter added
|
||||
#endif //CONFIG_ENCODERS
|
||||
-static inline int mpeg1_decode_block_inter(MpegEncContext *s,
|
||||
- DCTELEM *block,
|
||||
- int n);
|
||||
-static inline int mpeg1_decode_block_intra(MpegEncContext *s,
|
||||
- DCTELEM *block,
|
||||
- int n);
|
||||
-static inline int mpeg2_decode_block_non_intra(MpegEncContext *s,
|
||||
+static int mpeg1_decode_block_inter(MpegEncContext *s,
|
||||
+ DCTELEM *block,
|
||||
+ int n);
|
||||
+static int mpeg1_decode_block_intra(MpegEncContext *s,
|
||||
+ DCTELEM *block,
|
||||
+ int n);
|
||||
+static int mpeg2_decode_block_non_intra(MpegEncContext *s,
|
||||
DCTELEM *block,
|
||||
int n);
|
||||
-static inline int mpeg2_decode_block_intra(MpegEncContext *s,
|
||||
+static int mpeg2_decode_block_intra(MpegEncContext *s,
|
||||
DCTELEM *block,
|
||||
int n);
|
||||
static int mpeg_decode_motion(MpegEncContext *s, int fcode, int pred);
|
||||
@@ -1463,9 +1463,9 @@
|
||||
return diff;
|
||||
}
|
||||
|
||||
-static inline int mpeg1_decode_block_intra(MpegEncContext *s,
|
||||
- DCTELEM *block,
|
||||
- int n)
|
||||
+static int mpeg1_decode_block_intra(MpegEncContext *s,
|
||||
+ DCTELEM *block,
|
||||
+ int n)
|
||||
{
|
||||
int level, dc, diff, i, j, run;
|
||||
int component;
|
||||
@@ -1536,9 +1536,9 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
-static inline int mpeg1_decode_block_inter(MpegEncContext *s,
|
||||
- DCTELEM *block,
|
||||
- int n)
|
||||
+static int mpeg1_decode_block_inter(MpegEncContext *s,
|
||||
+ DCTELEM *block,
|
||||
+ int n)
|
||||
{
|
||||
int level, i, j, run;
|
||||
RLTable *rl = &rl_mpeg1;
|
||||
@@ -1614,9 +1614,9 @@
|
||||
|
||||
/* Also does unquantization here, since I will never support mpeg2
|
||||
encoding */
|
||||
-static inline int mpeg2_decode_block_non_intra(MpegEncContext *s,
|
||||
- DCTELEM *block,
|
||||
- int n)
|
||||
+static int mpeg2_decode_block_non_intra(MpegEncContext *s,
|
||||
+ DCTELEM *block,
|
||||
+ int n)
|
||||
{
|
||||
int level, i, j, run;
|
||||
RLTable *rl = &rl_mpeg1;
|
||||
@@ -1693,9 +1693,9 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
-static inline int mpeg2_decode_block_intra(MpegEncContext *s,
|
||||
- DCTELEM *block,
|
||||
- int n)
|
||||
+static int mpeg2_decode_block_intra(MpegEncContext *s,
|
||||
+ DCTELEM *block,
|
||||
+ int n)
|
||||
{
|
||||
int level, dc, diff, i, j, run;
|
||||
int component;
|
||||
@@ -0,0 +1,24 @@
|
||||
--- src/libffmpeg/libavcodec/msmpeg4.c.orig Wed Aug 4 17:27:04 2004
|
||||
+++ src/libffmpeg/libavcodec/msmpeg4.c Wed Aug 4 17:27:37 2004
|
||||
@@ -60,8 +60,8 @@
|
||||
static uint32_t v2_dc_chroma_table[512][2];
|
||||
|
||||
static inline void msmpeg4_encode_block(MpegEncContext * s, DCTELEM * block, int n);
|
||||
-static inline int msmpeg4_decode_block(MpegEncContext * s, DCTELEM * block,
|
||||
- int n, int coded, const uint8_t *scantable);
|
||||
+static int msmpeg4_decode_block(MpegEncContext * s, DCTELEM * block,
|
||||
+ int n, int coded, const uint8_t *scantable);
|
||||
static int msmpeg4_decode_dc(MpegEncContext * s, int n, int *dir_ptr);
|
||||
static int msmpeg4_decode_motion(MpegEncContext * s,
|
||||
int *mx_ptr, int *my_ptr);
|
||||
@@ -1656,8 +1656,8 @@
|
||||
return 0;
|
||||
}
|
||||
//#define ERROR_DETAILS
|
||||
-static inline int msmpeg4_decode_block(MpegEncContext * s, DCTELEM * block,
|
||||
- int n, int coded, const uint8_t *scan_table)
|
||||
+static int msmpeg4_decode_block(MpegEncContext * s, DCTELEM * block,
|
||||
+ int n, int coded, const uint8_t *scan_table)
|
||||
{
|
||||
int level, i, last, run, run_diff;
|
||||
int dc_pred_dir;
|
||||
Reference in New Issue
Block a user