]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/oggparsetheora.c
indent
[ffmpeg] / libavformat / oggparsetheora.c
index 617d1ded514b883b628945068c147dbbe989ffad..36848b15883e3c439bfdde2ca63e3fa2d8a16ef6 100644 (file)
@@ -23,9 +23,9 @@
 **/
 
 #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 {
@@ -124,6 +124,9 @@ theora_gptopts(AVFormatContext *ctx, int idx, uint64_t gp)
     uint64_t iframe = gp >> thp->gpshift;
     uint64_t pframe = gp & thp->gpmask;
 
+    if(!pframe)
+        os->pflags |= PKT_FLAG_KEY;
+
     return iframe + pframe;
 }