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/avfilter.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/avfilter.c')
-rw-r--r-- | libavfilter/avfilter.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 7005ff2ccb..da28501e14 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -23,6 +23,7 @@ #include "libavcodec/audioconvert.c" #include "libavutil/pixdesc.h" +#include "libavutil/rational.h" #include "libavcore/imgutils.h" #include "avfilter.h" #include "internal.h" @@ -180,6 +181,9 @@ int avfilter_config_links(AVFilterContext *filter) if ((ret = config_link(link)) < 0) return ret; + if (link->time_base.num == 0 && link->time_base.den == 0) + link->time_base = AV_TIME_BASE_Q; + if ((config_link = link->dstpad->config_props)) if ((ret = config_link(link)) < 0) return ret; |