[FFmpeg-cvslog] r22456 - trunk/libavformat/oggdec.h

conrad subversion
Thu Mar 11 08:17:36 CET 2010


Author: conrad
Date: Thu Mar 11 08:17:36 2010
New Revision: 22456

Log:
oggdec: Check that we have a codec in gptopts (needed for skeleton)

Modified:
   trunk/libavformat/oggdec.h

Modified: trunk/libavformat/oggdec.h
==============================================================================
--- trunk/libavformat/oggdec.h	Thu Mar 11 08:17:33 2010	(r22455)
+++ trunk/libavformat/oggdec.h	Thu Mar 11 08:17:36 2010	(r22456)
@@ -134,7 +134,7 @@ ogg_gptopts (AVFormatContext * s, int i,
     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;



More information about the ffmpeg-cvslog mailing list