1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lavfi/select: unbreak compatibility with older PICT_TYPE syntax

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2013-05-10 17:36:07 +00:00
parent cbcc5cbbd8
commit 91cae60ecb

View File

@ -59,6 +59,13 @@ static const char *const var_names[] = {
"SI", "SI",
"SP", "SP",
"BI", "BI",
"PICT_TYPE_I",
"PICT_TYPE_P",
"PICT_TYPE_B",
"PICT_TYPE_S",
"PICT_TYPE_SI",
"PICT_TYPE_SP",
"PICT_TYPE_BI",
"interlace_type", ///< the frame interlace type "interlace_type", ///< the frame interlace type
"PROGRESSIVE", "PROGRESSIVE",
@ -95,6 +102,13 @@ enum var_name {
VAR_PREV_SELECTED_T, VAR_PREV_SELECTED_T,
VAR_PICT_TYPE, VAR_PICT_TYPE,
VAR_I,
VAR_P,
VAR_B,
VAR_S,
VAR_SI,
VAR_SP,
VAR_BI,
VAR_PICT_TYPE_I, VAR_PICT_TYPE_I,
VAR_PICT_TYPE_P, VAR_PICT_TYPE_P,
VAR_PICT_TYPE_B, VAR_PICT_TYPE_B,
@ -200,6 +214,12 @@ static int config_input(AVFilterLink *inlink)
select->var_values[VAR_START_PTS] = NAN; select->var_values[VAR_START_PTS] = NAN;
select->var_values[VAR_START_T] = NAN; select->var_values[VAR_START_T] = NAN;
select->var_values[VAR_I] = AV_PICTURE_TYPE_I;
select->var_values[VAR_P] = AV_PICTURE_TYPE_P;
select->var_values[VAR_B] = AV_PICTURE_TYPE_B;
select->var_values[VAR_SI] = AV_PICTURE_TYPE_SI;
select->var_values[VAR_SP] = AV_PICTURE_TYPE_SP;
select->var_values[VAR_BI] = AV_PICTURE_TYPE_BI;
select->var_values[VAR_PICT_TYPE_I] = AV_PICTURE_TYPE_I; select->var_values[VAR_PICT_TYPE_I] = AV_PICTURE_TYPE_I;
select->var_values[VAR_PICT_TYPE_P] = AV_PICTURE_TYPE_P; select->var_values[VAR_PICT_TYPE_P] = AV_PICTURE_TYPE_P;
select->var_values[VAR_PICT_TYPE_B] = AV_PICTURE_TYPE_B; select->var_values[VAR_PICT_TYPE_B] = AV_PICTURE_TYPE_B;