|
|
@@ -276,7 +276,6 @@ static av_cold void mpv_encode_init_static(void)
|
|
|
|
|
|
/**
|
|
|
* Set the given MpegEncContext to defaults for encoding.
|
|
|
- * the changed fields will not depend upon the prior state of the MpegEncContext.
|
|
|
*/
|
|
|
static av_cold void mpv_encode_defaults(MpegEncContext *s)
|
|
|
{
|
|
|
@@ -288,6 +287,11 @@ static av_cold void mpv_encode_defaults(MpegEncContext *s)
|
|
|
|
|
|
s->fcode_tab = default_fcode_tab + MAX_MV;
|
|
|
|
|
|
+ if (!s->y_dc_scale_table) {
|
|
|
+ s->y_dc_scale_table =
|
|
|
+ s->c_dc_scale_table = ff_mpeg1_dc_scale_table;
|
|
|
+ }
|
|
|
+
|
|
|
s->input_picture_number = 0;
|
|
|
s->picture_in_gop_number = 0;
|
|
|
}
|