diff options
author | David Conrad <lessen42@gmail.com> | 2010-03-11 07:17:36 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2010-03-11 07:17:36 +0000 |
commit | 296bdf9cf1ab6689a9db14ee53e29a10e94a6578 (patch) | |
tree | d66306d4edf7e0da9e40479ee0c97a1da3fb08cd /libavformat/oggdec.h | |
parent | dfaed51f04128953f1a8c44a1f5114d5a330d252 (diff) | |
download | ffmpeg-296bdf9cf1ab6689a9db14ee53e29a10e94a6578.tar.gz |
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.h | 2 |
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; |