diff options
-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; |