Commit e0046ab3 authored by conrad's avatar conrad

oggdec: Check that we have a codec in gptopts (needed for skeleton)

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22456 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5bc2e536
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment