mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/h263, h263data: Move ff_h263_init_rl_inter to h263.c
The SVQ1 decoder does not need mpegvideo or rl.c, but it uses stuff from h263data.c. But since61fe481586
h263data.c called ff_rl_init() and this of course led to build errors when the SVQ1 decoder is enabled and mpegvideo disabled. Fix this by moving ff_h263_init_rl_inter() to h263.c. Fixes ticket #9224. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> (cherry picked from commite2301feabc
)
This commit is contained in:
parent
01701019e0
commit
74bcfe5f85
@ -29,6 +29,7 @@
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
#include "libavutil/thread.h"
|
||||
#include "avcodec.h"
|
||||
#include "mpegvideo.h"
|
||||
#include "h263.h"
|
||||
@ -38,6 +39,17 @@
|
||||
#include "flv.h"
|
||||
#include "mpeg4video.h"
|
||||
|
||||
static av_cold void h263_init_rl_inter(void)
|
||||
{
|
||||
static uint8_t h263_rl_inter_table[2][2 * MAX_RUN + MAX_LEVEL + 3];
|
||||
ff_rl_init(&ff_h263_rl_inter, h263_rl_inter_table);
|
||||
}
|
||||
|
||||
av_cold void ff_h263_init_rl_inter(void)
|
||||
{
|
||||
static AVOnce init_static_once = AV_ONCE_INIT;
|
||||
ff_thread_once(&init_static_once, h263_init_rl_inter);
|
||||
}
|
||||
|
||||
void ff_h263_update_motion_val(MpegEncContext * s){
|
||||
const int mb_xy = s->mb_y * s->mb_stride + s->mb_x;
|
||||
|
@ -66,6 +66,7 @@ int16_t *ff_h263_pred_motion(MpegEncContext * s, int block, int dir,
|
||||
int *px, int *py);
|
||||
void ff_h263_encode_init(MpegEncContext *s);
|
||||
void ff_h263_decode_init_vlc(void);
|
||||
void ff_h263_init_rl_inter(void);
|
||||
int ff_h263_decode_picture_header(MpegEncContext *s);
|
||||
int ff_h263_decode_gob_header(MpegEncContext *s);
|
||||
void ff_h263_update_motion_val(MpegEncContext * s);
|
||||
|
@ -25,8 +25,6 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "libavutil/thread.h"
|
||||
|
||||
#include "h263data.h"
|
||||
#include "mpegvideo.h"
|
||||
|
||||
@ -290,15 +288,3 @@ const AVRational ff_h263_pixel_aspect[16] = {
|
||||
{ 0, 1 },
|
||||
{ 0, 1 },
|
||||
};
|
||||
|
||||
static av_cold void h263_init_rl_inter(void)
|
||||
{
|
||||
static uint8_t h263_rl_inter_table[2][2 * MAX_RUN + MAX_LEVEL + 3];
|
||||
ff_rl_init(&ff_h263_rl_inter, h263_rl_inter_table);
|
||||
}
|
||||
|
||||
av_cold void ff_h263_init_rl_inter(void)
|
||||
{
|
||||
static AVOnce init_static_once = AV_ONCE_INIT;
|
||||
ff_thread_once(&init_static_once, h263_init_rl_inter);
|
||||
}
|
||||
|
@ -61,7 +61,6 @@ extern const int8_t ff_inter_run[102];
|
||||
|
||||
extern RLTable ff_h263_rl_inter;
|
||||
extern RLTable ff_rl_intra_aic;
|
||||
void ff_h263_init_rl_inter(void);
|
||||
|
||||
extern const uint16_t ff_h263_format[8][2];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user