[xiph-commits] r16854 - trunk/ffmpeg2theora/patches

j at svn.xiph.org j at svn.xiph.org
Sat Jan 30 02:54:41 PST 2010


Author: j
Date: 2010-01-30 02:54:41 -0800 (Sat, 30 Jan 2010)
New Revision: 16854

Added:
   trunk/ffmpeg2theora/patches/ffmpeg_ogg_decode.patch
Log:
add patch to revert change to ffmpeg decoder that breaks reading some ogg theora files, https://roundup.ffmpeg.org/roundup/ffmpeg/issue1723

Added: trunk/ffmpeg2theora/patches/ffmpeg_ogg_decode.patch
===================================================================
--- trunk/ffmpeg2theora/patches/ffmpeg_ogg_decode.patch	                        (rev 0)
+++ trunk/ffmpeg2theora/patches/ffmpeg_ogg_decode.patch	2010-01-30 10:54:41 UTC (rev 16854)
@@ -0,0 +1,21 @@
+Index: libavformat/oggdec.c
+===================================================================
+--- libavformat/oggdec.c	(revision 21530)
++++ libavformat/oggdec.c	(working copy)
+@@ -491,17 +503,12 @@
+ ogg_read_header (AVFormatContext * s, AVFormatParameters * ap)
+ {
+     struct ogg *ogg = s->priv_data;
+-    int i;
+     ogg->curidx = -1;
+     //linear headers seek from start
+     if (ogg_get_headers (s) < 0){
+         return -1;
+     }
+ 
+-    for (i = 0; i < ogg->nstreams; i++)
+-        if (ogg->streams[i].header < 0)
+-            ogg->streams[i].codec = NULL;
+-
+     //linear granulepos seek from end
+     ogg_get_length (s);



More information about the commits mailing list