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

Unified Diff: chromium/patches/to_upstream/34_ogg_memcpy.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/34_ogg_memcpy.patch
diff --git a/chromium/patches/to_upstream/34_ogg_memcpy.patch b/chromium/patches/to_upstream/34_ogg_memcpy.patch
new file mode 100644
index 0000000000000000000000000000000000000000..f70f0f54a599162af6c49dd645b72c7843df6bb3
--- /dev/null
+++ b/chromium/patches/to_upstream/34_ogg_memcpy.patch
@@ -0,0 +1,12 @@
+diff -wurp -N orig/libavformat/oggdec.c ffmpeg/libavformat/oggdec.c
+--- orig/libavformat/oggdec.c 2011-07-12 20:49:56.784219402 -0700
++++ ffmpeg/libavformat/oggdec.c 2011-07-12 20:49:56.832983905 -0700
+@@ -109,6 +109,8 @@
+ avio_seek (bc, ost->pos, SEEK_SET);
+ ogg->curidx = ost->curidx;
+ ogg->nstreams = ost->nstreams;
++ ogg->streams = av_realloc (ogg->streams,
++ ogg->nstreams * sizeof (*ogg->streams));
+ memcpy(ogg->streams, ost->streams,
+ ost->nstreams * sizeof(*ogg->streams));
+ }

Powered by Google App Engine
This is Rietveld 408576698