| Index: libavformat/oggparsetheora.c
|
| diff --git a/libavformat/oggparsetheora.c b/libavformat/oggparsetheora.c
|
| index 993db3ee558b0c1c08fa634c0fc5acb714292e41..9779a1602bcb33c688f253a41f7bcfda43b839e3 100644
|
| --- a/libavformat/oggparsetheora.c
|
| +++ b/libavformat/oggparsetheora.c
|
| @@ -130,6 +130,7 @@ theora_gptopts(AVFormatContext *ctx, int idx, uint64_t gp, int64_t *dts)
|
| struct ogg *ogg = ctx->priv_data;
|
| struct ogg_stream *os = ogg->streams + idx;
|
| struct theora_params *thp = os->private;
|
| + if (!thp) return NULL;
|
| uint64_t iframe = gp >> thp->gpshift;
|
| uint64_t pframe = gp & thp->gpmask;
|
|
|
|
|