]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/segafilmenc.c
ffmpeg: Treat subtitles like audio and video for non-monotonic dts.
[ffmpeg] / libavformat / segafilmenc.c
index 5b0d7e69e87a460a2af6033fb115272db5fea990..524230e461c769a67566543dea71be3fe6970915 100644 (file)
@@ -69,7 +69,7 @@ static int film_write_packet_to_header(AVFormatContext *format_context, FILMPack
         info1 = pkt->pts;
         info2 = pkt->duration;
         /* The top bit being set indicates a key frame */
-        if (pkt->keyframe)
+        if (!pkt->keyframe)
             info1 |= (1 << 31);
     }