id3v2: set the keyframe flag on attached pictures.
authorAnton Khirnov <anton@khirnov.net>
Sun, 18 Mar 2012 16:29:52 +0000 (17:29 +0100)
committerAnton Khirnov <anton@khirnov.net>
Tue, 20 Mar 2012 05:52:07 +0000 (06:52 +0100)
libavformat/id3v2.c

index 1f2c3d5..13e5997 100644 (file)
@@ -724,6 +724,7 @@ int ff_id3v2_parse_apic(AVFormatContext *s, ID3v2ExtraMeta **extra_meta)
         st->attached_pic.size         = apic->len;
         st->attached_pic.destruct     = av_destruct_packet;
         st->attached_pic.stream_index = st->index;
+        st->attached_pic.flags       |= AV_PKT_FLAG_KEY;
 
         apic->data = NULL;
         apic->len  = 0;