diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-06-18 01:52:40 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-06-19 19:13:19 +0200 |
commit | e89ba76a59ce31320083b74f41e26bf4f64df8dd (patch) | |
tree | b25335073a00534b5affc412a0c4f2427ac5da7b /libavfilter | |
parent | 141f03541b39e131a5e8aa776a88abe77b70618e (diff) | |
download | ffmpeg-streaming-e89ba76a59ce31320083b74f41e26bf4f64df8dd.zip ffmpeg-streaming-e89ba76a59ce31320083b74f41e26bf4f64df8dd.tar.gz |
vsrc_color: use internal timebase
Avoid timescale conversion, simplify.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vsrc_color.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vsrc_color.c b/libavfilter/vsrc_color.c index 6d8b5e9..62c7f80 100644 --- a/libavfilter/vsrc_color.c +++ b/libavfilter/vsrc_color.c @@ -129,6 +129,7 @@ static int color_config_props(AVFilterLink *inlink) is_packed_rgba ? "rgba" : "yuva"); inlink->w = color->w; inlink->h = color->h; + inlink->time_base = color->time_base; return 0; } @@ -138,7 +139,7 @@ static int color_request_frame(AVFilterLink *link) ColorContext *color = link->src->priv; AVFilterBufferRef *picref = avfilter_get_video_buffer(link, AV_PERM_WRITE, color->w, color->h); picref->video->sample_aspect_ratio = (AVRational) {1, 1}; - picref->pts = av_rescale_q(color->pts++, color->time_base, AV_TIME_BASE_Q); + picref->pts = color->pts++; picref->pos = -1; avfilter_start_frame(link, avfilter_ref_buffer(picref, ~0)); |