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

Side by Side 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, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 diff -wurp -N orig/libavformat/oggdec.c ffmpeg/libavformat/oggdec.c
2 --- orig/libavformat/oggdec.c 2011-08-24 20:49:56.784219402 -0700
3 +++ ffmpeg/libavformat/oggdec.c 2011-08-24 20:49:56.832983905 -0700
4 @@ -480,18 +480,6 @@ static int ogg_get_length(AVFormatContext *s)
5
6 ogg_restore (s, 0);
7
8 - ogg_save (s);
9 - avio_seek (s->pb, 0, SEEK_SET);
10 - while (!ogg_read_page (s, &i)){
11 - if (ogg->streams[i].granule != -1 && ogg->streams[i].granule != 0 &&
12 - ogg->streams[i].codec) {
13 - s->streams[i]->duration -=
14 - ogg_gptopts (s, i, ogg->streams[i].granule, NULL);
15 - break;
16 - }
17 - }
18 - ogg_restore (s, 0);
19 -
20 return 0;
21 }
22
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698