idcin: set AV_PKT_FLAG_KEY for video packets with a palette
authorJustin Ruggles <justin.ruggles@gmail.com>
Wed, 1 Aug 2012 20:08:28 +0000 (16:08 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Wed, 9 Jan 2013 19:49:06 +0000 (14:49 -0500)
libavformat/idcin.c

index 697b972..122fd8e 100644 (file)
@@ -290,6 +290,7 @@ static int idcin_read_packet(AVFormatContext *s,
             if (ret < 0)
                 return ret;
             memcpy(pal, palette, AVPALETTE_SIZE);
+            pkt->flags |= AV_PKT_FLAG_KEY;
         }
         pkt->stream_index = idcin->video_stream_index;
         pkt->duration     = 1;