**/
#include <stdlib.h>
+#include "libavutil/bswap.h"
+#include "libavcodec/bitstream.h"
#include "avformat.h"
-#include "bitstream.h"
-#include "bswap.h"
#include "oggdec.h"
typedef struct theora_params {
uint64_t iframe = gp >> thp->gpshift;
uint64_t pframe = gp & thp->gpmask;
+ if(!pframe)
+ os->pflags |= PKT_FLAG_KEY;
+
return iframe + pframe;
}