deprecate the z_frame_rate stuff which is deprecated in ffmpeg
This commit is contained in:
parent
39e06b929f
commit
59b28e8346
|
@ -388,17 +388,14 @@ void zm_dump_stream_format(AVFormatContext *ic, int i, int index, int is_output)
|
||||||
|
|
||||||
if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO) {
|
if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO) {
|
||||||
int fps = st->avg_frame_rate.den && st->avg_frame_rate.num;
|
int fps = st->avg_frame_rate.den && st->avg_frame_rate.num;
|
||||||
int tbr = st->r_frame_rate.den && st->r_frame_rate.num;
|
|
||||||
int tbn = st->time_base.den && st->time_base.num;
|
int tbn = st->time_base.den && st->time_base.num;
|
||||||
int tbc = st->codec->time_base.den && st->codec->time_base.num;
|
int tbc = st->codec->time_base.den && st->codec->time_base.num;
|
||||||
|
|
||||||
if (fps || tbr || tbn || tbc)
|
if (fps || tbn || tbc)
|
||||||
Debug(3, "\n" );
|
Debug(3, "\n" );
|
||||||
|
|
||||||
if (fps)
|
if (fps)
|
||||||
zm_log_fps(av_q2d(st->avg_frame_rate), tbr || tbn || tbc ? "fps, " : "fps");
|
zm_log_fps(av_q2d(st->avg_frame_rate), tbn || tbc ? "fps, " : "fps");
|
||||||
if (tbr)
|
|
||||||
zm_log_fps(av_q2d(st->r_frame_rate), tbn || tbc ? "tbr, " : "tbr");
|
|
||||||
if (tbn)
|
if (tbn)
|
||||||
zm_log_fps(1 / av_q2d(st->time_base), tbc ? "tbn, " : "tbn");
|
zm_log_fps(1 / av_q2d(st->time_base), tbc ? "tbn, " : "tbn");
|
||||||
if (tbc)
|
if (tbc)
|
||||||
|
|
Loading…
Reference in New Issue