From 296bdf9cf1ab6689a9db14ee53e29a10e94a6578 Mon Sep 17 00:00:00 2001 From: David Conrad Date: Thu, 11 Mar 2010 07:17:36 +0000 Subject: [PATCH] oggdec: Check that we have a codec in gptopts (needed for skeleton) Originally committed as revision 22456 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/oggdec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/oggdec.h b/libavformat/oggdec.h index aa6e8990b0..170455ac00 100644 --- a/libavformat/oggdec.h +++ b/libavformat/oggdec.h @@ -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;