diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-10-12 22:40:20 +0400 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-10-12 22:40:20 +0400 |
commit | 94498ec98a9f0807b0d418beb5f6a0c76318d074 (patch) | |
tree | a3128da5452650781d1ee2f2bc50e221703d3392 /ffmpeg.c | |
parent | 387b4ac993528d6e25b3d6fe49d5d360b8e62e98 (diff) |
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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |