Revision da1b9b88 ffmpeg.c

View differences:

ffmpeg.c
352 352
        return ret;
353 353

  
354 354
    snprintf(args, 255, "%d:%d:%d:%d:%d", ist->st->codec->width,
355
             ist->st->codec->height, ist->st->codec->pix_fmt,
356
             ist->st->time_base.num, ist->st->time_base.den);
355
             ist->st->codec->height, ist->st->codec->pix_fmt, 1, AV_TIME_BASE);
357 356
    if ((ret = avfilter_init_filter(ist->input_video_filter, args, NULL)) < 0)
358 357
        return ret;
359 358
    if ((ret = avfilter_init_filter(ist->output_video_filter, NULL, &ffsink_ctx)) < 0)
......
1618 1617
            if (ist->st->codec->codec_type == AVMEDIA_TYPE_VIDEO && ist->output_video_filter)
1619 1618
                get_filtered_video_frame(ist->output_video_filter, &picture, &ist->picref, &ist_pts_tb);
1620 1619
            if (ist->picref)
1621
                ist->pts = ist->picref->pts;
1620
                ist->pts = av_rescale_q(ist->picref->pts, ist_pts_tb, AV_TIME_BASE_Q);
1622 1621
#endif
1623 1622
            for(i=0;i<nb_ostreams;i++) {
1624 1623
                int frame_size;

Also available in: Unified diff