]> git.sesse.net Git - ffmpeg/commitdiff
oggdec: Check that we have a codec in gptopts (needed for skeleton)
authorDavid Conrad <lessen42@gmail.com>
Thu, 11 Mar 2010 07:17:36 +0000 (07:17 +0000)
committerDavid Conrad <lessen42@gmail.com>
Thu, 11 Mar 2010 07:17:36 +0000 (07:17 +0000)
Originally committed as revision 22456 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/oggdec.h

index aa6e8990b0d0905bf6df3fb3b7b86acfd5b7941b..170455ac008b82879f2cad5d78d48d3bcb83d085 100644 (file)
@@ -134,7 +134,7 @@ ogg_gptopts (AVFormatContext * s, int i, uint64_t gp, int64_t *dts)
     struct ogg_stream *os = ogg->streams + i;
     uint64_t pts = AV_NOPTS_VALUE;
 
-    if(os->codec->gptopts){
+    if(os->codec && os->codec->gptopts){
         pts = os->codec->gptopts(s, i, gp, dts);
     } else {
         pts = gp;