mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
lavf: print the invalid tb in avpriv_set_pts_info()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5e268633d1
commit
121d3875b6
@ -4136,7 +4136,7 @@ void avpriv_set_pts_info(AVStream *s, int pts_wrap_bits,
|
|||||||
av_log(NULL, AV_LOG_WARNING, "st:%d has too large timebase, reducing\n", s->index);
|
av_log(NULL, AV_LOG_WARNING, "st:%d has too large timebase, reducing\n", s->index);
|
||||||
|
|
||||||
if(new_tb.num <= 0 || new_tb.den <= 0) {
|
if(new_tb.num <= 0 || new_tb.den <= 0) {
|
||||||
av_log(NULL, AV_LOG_ERROR, "Ignoring attempt to set invalid timebase for st:%d\n", s->index);
|
av_log(NULL, AV_LOG_ERROR, "Ignoring attempt to set invalid timebase %d/%d for st:%d\n", new_tb.num, new_tb.den, s->index);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
s->time_base = new_tb;
|
s->time_base = new_tb;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user