mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-03 14:32:16 +02:00
timecode: more tolerant frame rate check for drop flag.
This fixes some timecode probing in MOV.
This commit is contained in:
parent
c5f4abf698
commit
ed14b7242a
@ -64,7 +64,7 @@ int avpriv_check_timecode_rate(void *avcl, AVRational rate, int drop)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
fps = (rate.num + rate.den/2) / rate.den;
|
fps = (rate.num + rate.den/2) / rate.den;
|
||||||
if (drop && (rate.den != 1001 || fps != 30)) {
|
if (drop && fps != 30) {
|
||||||
av_log(avcl, AV_LOG_ERROR, "Drop frame is only allowed with 30000/1001 FPS\n");
|
av_log(avcl, AV_LOG_ERROR, "Drop frame is only allowed with 30000/1001 FPS\n");
|
||||||
return -2;
|
return -2;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user