aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-10-12 18:40:20 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-10-12 18:40:20 +0000
commit94498ec98a9f0807b0d418beb5f6a0c76318d074 (patch)
treea3128da5452650781d1ee2f2bc50e221703d3392 /ffmpeg.c
parent387b4ac993528d6e25b3d6fe49d5d360b8e62e98 (diff)
downloadffmpeg-94498ec98a9f0807b0d418beb5f6a0c76318d074.tar.gz
Extend buffer source to accept the time base for the output PTS.
Originally committed as revision 25451 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index e0463a996e..bfb7f7e2d5 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -424,8 +424,9 @@ static int configure_filters(AVInputStream *ist, AVOutputStream *ost)
if ((ret = avfilter_open(&ist->output_video_filter, &output_filter, "out")) < 0)
return ret;
- snprintf(args, 255, "%d:%d:%d", ist->st->codec->width,
- ist->st->codec->height, ist->st->codec->pix_fmt);
+ snprintf(args, 255, "%d:%d:%d:%d:%d", ist->st->codec->width,
+ ist->st->codec->height, ist->st->codec->pix_fmt,
+ ist->st->time_base.num, ist->st->time_base.den);
if ((ret = avfilter_init_filter(ist->input_video_filter, args, NULL)) < 0)
return ret;
if ((ret = avfilter_init_filter(ist->output_video_filter, NULL, &codec->pix_fmt)) < 0)