Commit b51a6001 authored by Jan Gerber's avatar Jan Gerber
Browse files

update ChangeLog, add ffmpeg patch for ogg duration

parent e1f95340
svn
- use a/v sync from input container
this should fix many issues that came up with variable framerate inputs
0.25 2009-09-28
- fix input from codecs where width/height is not encoded width/height
- fix a/v sync issues with some mov/mp4 files with strange framerates
......
Index: libavformat/oggdec.c
===================================================================
--- libavformat/oggdec.c (revision 19439)
+++ libavformat/oggdec.c (working copy)
@@ -469,6 +469,18 @@
ogg->size = size;
ogg_restore (s, 0);
+ ogg_save (s);
+ url_fseek (s->pb, 0, SEEK_SET);
+ while (!ogg_read_page (s, &i)){
+ if (ogg->streams[i].granule != -1 && ogg->streams[i].granule != 0 &&
+ idx == i) {
+ s->streams[idx]->duration -=
+ ogg_gptopts (s, idx, ogg->streams[idx].granule);
+ break;
+ }
+ }
+ ogg_restore (s, 0);
+
return 0;
}
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