Browse Source

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

Originally committed as revision 22456 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
David Conrad 15 years ago
parent
commit
296bdf9cf1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/oggdec.h

+ 1
- 1
libavformat/oggdec.h View File

@@ -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;


Loading…
Cancel
Save