comparison oggparsetheora.c @ 5751:4d38b2c2bc59 libavformat

oggdec: Parse theora headers since ogg might not mark keyframes Fixes issue746
author conrad
date Fri, 05 Mar 2010 00:22:40 +0000
parents 52c7b29eca31
children e3830094915a
comparison
equal deleted inserted replaced
5750:0f9c0db923e5 5751:4d38b2c2bc59
104 thp->gpshift = get_bits(&gb, 5); 104 thp->gpshift = get_bits(&gb, 5);
105 thp->gpmask = (1 << thp->gpshift) - 1; 105 thp->gpmask = (1 << thp->gpshift) - 1;
106 106
107 st->codec->codec_type = CODEC_TYPE_VIDEO; 107 st->codec->codec_type = CODEC_TYPE_VIDEO;
108 st->codec->codec_id = CODEC_ID_THEORA; 108 st->codec->codec_id = CODEC_ID_THEORA;
109 st->need_parsing = AVSTREAM_PARSE_HEADERS;
109 110
110 } else if (os->buf[os->pstart] == 0x83) { 111 } else if (os->buf[os->pstart] == 0x83) {
111 vorbis_comment (s, os->buf + os->pstart + 7, os->psize - 8); 112 vorbis_comment (s, os->buf + os->pstart + 7, os->psize - 8);
112 } 113 }
113 114