aboutsummaryrefslogtreecommitdiff
path: root/libavformat/oggdec.h
diff options
context:
space:
mode:
authorDavid Conrad2010-03-11 07:17:36 +0000
committerDavid Conrad2010-03-11 07:17:36 +0000
commit296bdf9cf1ab6689a9db14ee53e29a10e94a6578 (patch)
treed66306d4edf7e0da9e40479ee0c97a1da3fb08cd /libavformat/oggdec.h
parentdfaed51f04128953f1a8c44a1f5114d5a330d252 (diff)
oggdec: Check that we have a codec in gptopts (needed for skeleton)
Originally committed as revision 22456 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/oggdec.h')
-rw-r--r--libavformat/oggdec.h2
1 files changed, 1 insertions, 1 deletions
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;