History

Fix two-pass framrate for Y4M input.

The timebase was being set to the value in the Y4M file on each pass, but only doubled to account for the altref placement on the first past. This avoids reseting it on the second pass.

Timothy B. Terriberry committed 16 years ago

Commit e105e241 parent 00358cb1 file · +2 −0Browse files

Unified · Split

ivfenc.c+2−0
@@ -890,6 +890,8 @@ int main(int argc, const char **argv_) · 889 unmodified lines
890890 {
891891 cfg.g_timebase.num = y4m.fps_d;
892892 cfg.g_timebase.den = y4m.fps_n;
893+ /* And don't reset it in the second pass.*/
894+ arg_have_timebase = 1;
893895 }
894896 arg_use_i420 = 0;
895897 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t