Mercurial > libavformat.hg
changeset 5811:5e9709333748 libavformat
oggdec: Check that we have a codec in gptopts (needed for skeleton)
author | conrad |
---|---|
date | Thu, 11 Mar 2010 07:17:36 +0000 |
parents | d090202af37d |
children | c66b238d4d33 |
files | oggdec.h |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/oggdec.h Thu Mar 11 07:17:33 2010 +0000 +++ b/oggdec.h Thu Mar 11 07:17:36 2010 +0000 @@ -134,7 +134,7 @@ 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;