diff options
author | Gyan Doshi <ffmpeg@gyani.pro> | 2018-05-05 17:04:53 +0530 |
---|---|---|
committer | Gyan Doshi <ffmpeg@gyani.pro> | 2018-05-08 13:29:15 +0530 |
commit | 0683ad709b0eafc6e863612e5f80784efaf0e04e (patch) | |
tree | 374ffab5cb3f522cdedfe3c6e31a4bd8098dcb81 /libavformat/segafilmenc.c | |
parent | 29eb1c51d7352c55990ba938194d91486f460d2d (diff) | |
download | ffmpeg-0683ad709b0eafc6e863612e5f80784efaf0e04e.tar.gz |
avformat/segafilmenc - set keyframe bit correctly
As per
https://web.archive.org/web/20020803104640/http://www.pcisys.net:80/~melanson/codecs/film-format.txt,
the top bit of the info1 chunk is set as 1 for inter-coded frames and 0
otherwise.
Diffstat (limited to 'libavformat/segafilmenc.c')
-rw-r--r-- | libavformat/segafilmenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/segafilmenc.c b/libavformat/segafilmenc.c index 5b0d7e69e8..524230e461 100644 --- a/libavformat/segafilmenc.c +++ b/libavformat/segafilmenc.c @@ -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); } |