Commit 7f9369b7 authored by Michael Niedermayer's avatar Michael Niedermayer

lavf: update rfps debug code.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d19ca77f
...@@ -2494,8 +2494,8 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) ...@@ -2494,8 +2494,8 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
double dts= pkt->dts * av_q2d(st->time_base); double dts= pkt->dts * av_q2d(st->time_base);
int64_t duration= pkt->dts - last; int64_t duration= pkt->dts - last;
// if(st->codec->codec_type == AVMEDIA_TYPE_VIDEO) // if(st->codec->codec_type == AVMEDIA_TYPE_VIDEO)
// av_log(NULL, AV_LOG_ERROR, "%f\n", dur); // av_log(NULL, AV_LOG_ERROR, "%f\n", dts);
for (i=1; i<FF_ARRAY_ELEMS(st->info->duration_error[0][0]); i++) { for (i=1; i<FF_ARRAY_ELEMS(st->info->duration_error[0][0]); i++) {
int framerate= get_std_framerate(i); int framerate= get_std_framerate(i);
double sdts= dts*framerate/(1001*12); double sdts= dts*framerate/(1001*12);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment