diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-10-10 22:26:14 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-10-10 22:26:14 +0000 |
commit | 867ae7aa5d545414e7f42337479c8b6fd85db28f (patch) | |
tree | 4e154b35449e830f7cad079b14ae4ddac8add1f0 /libavfilter/defaults.c | |
parent | d256d21e3fcef89251ee3140b24d14a034a8219d (diff) | |
download | ffmpeg-867ae7aa5d545414e7f42337479c8b6fd85db28f.tar.gz |
Add a time_base field to AVFilterLink.
This is required for allowing a filter to use a time base different
from AV_TIME_BASE_Q, as it was previously assumed.
Originally committed as revision 25441 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/defaults.c')
-rw-r--r-- | libavfilter/defaults.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/defaults.c b/libavfilter/defaults.c index bfae4a39b3..1d748c2855 100644 --- a/libavfilter/defaults.c +++ b/libavfilter/defaults.c @@ -235,6 +235,7 @@ int avfilter_default_config_output_link(AVFilterLink *link) if (link->type == AVMEDIA_TYPE_VIDEO) { link->w = link->src->inputs[0]->w; link->h = link->src->inputs[0]->h; + link->time_base = link->src->inputs[0]->time_base; } else if (link->type == AVMEDIA_TYPE_AUDIO) { link->channel_layout = link->src->inputs[0]->channel_layout; link->sample_rate = link->src->inputs[0]->sample_rate; |