Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Unified Diff: chromium/patches/to_upstream/35_oggdec_duration.patch

Issue 9290059: Initial commit of all previous Chrome build scripts. (Closed) Base URL: http://git.chromium.org/chromium/third_party/ffmpeg.git@master
Patch Set: Drop deprecated subfolder. Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chromium/patches/to_upstream/35_oggdec_duration.patch
diff --git a/chromium/patches/to_upstream/35_oggdec_duration.patch b/chromium/patches/to_upstream/35_oggdec_duration.patch
new file mode 100644
index 0000000000000000000000000000000000000000..3e74905742ea499711768b951a0efa686ec453a1
--- /dev/null
+++ b/chromium/patches/to_upstream/35_oggdec_duration.patch
@@ -0,0 +1,22 @@
+diff -wurp -N orig/libavformat/oggdec.c ffmpeg/libavformat/oggdec.c
+--- orig/libavformat/oggdec.c 2011-08-24 20:49:56.784219402 -0700
++++ ffmpeg/libavformat/oggdec.c 2011-08-24 20:49:56.832983905 -0700
+@@ -480,18 +480,6 @@ static int ogg_get_length(AVFormatContext *s)
+
+ ogg_restore (s, 0);
+
+- ogg_save (s);
+- avio_seek (s->pb, 0, SEEK_SET);
+- while (!ogg_read_page (s, &i)){
+- if (ogg->streams[i].granule != -1 && ogg->streams[i].granule != 0 &&
+- ogg->streams[i].codec) {
+- s->streams[i]->duration -=
+- ogg_gptopts (s, i, ogg->streams[i].granule, NULL);
+- break;
+- }
+- }
+- ogg_restore (s, 0);
+-
+ return 0;
+ }
+

Powered by Google App Engine
This is Rietveld 408576698