You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avcodec/mpegvideo_enc: Only set fcode_tab if unset
This is in preparation for merging ff_mpeg1_encode_init() into the MPEG-1/2 encoder's init function. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@ -283,10 +283,10 @@ static av_cold void mpv_encode_defaults(MpegEncContext *s)
|
|||||||
|
|
||||||
ff_mpv_common_defaults(s);
|
ff_mpv_common_defaults(s);
|
||||||
|
|
||||||
ff_thread_once(&init_static_once, mpv_encode_init_static);
|
if (!s->fcode_tab) {
|
||||||
|
s->fcode_tab = default_fcode_tab + MAX_MV;
|
||||||
s->fcode_tab = default_fcode_tab + MAX_MV;
|
ff_thread_once(&init_static_once, mpv_encode_init_static);
|
||||||
|
}
|
||||||
if (!s->y_dc_scale_table) {
|
if (!s->y_dc_scale_table) {
|
||||||
s->y_dc_scale_table =
|
s->y_dc_scale_table =
|
||||||
s->c_dc_scale_table = ff_mpeg1_dc_scale_table;
|
s->c_dc_scale_table = ff_mpeg1_dc_scale_table;
|
||||||
|
Reference in New Issue
Block a user