]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/oggparsetheora.c
configure: inlcude sys/types.h when checking sys/socket.h
[ffmpeg] / libavformat / oggparsetheora.c
index 0d74116d178822d656b63e4711bc648797ad513b..8b35a47224ae9f5ecf5af163683c63a7b9d8c559 100644 (file)
@@ -123,7 +123,7 @@ theora_header (AVFormatContext * s, int idx)
 }
 
 static uint64_t
-theora_gptopts(AVFormatContext *ctx, int idx, uint64_t gp)
+theora_gptopts(AVFormatContext *ctx, int idx, uint64_t gp, int64_t *dts)
 {
     struct ogg *ogg = ctx->priv_data;
     struct ogg_stream *os = ogg->streams + idx;
@@ -137,6 +137,9 @@ theora_gptopts(AVFormatContext *ctx, int idx, uint64_t gp)
     if(!pframe)
         os->pflags |= PKT_FLAG_KEY;
 
+    if (dts)
+        *dts = iframe + pframe;
+
     return iframe + pframe;
 }