]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/id3v2.c
avformat/framehash: enable new output
[ffmpeg] / libavformat / id3v2.c
index addf937afd2ef38829ac0a32d74dbab1a6826152..46b939432a9ba2e2ec9eafddaab0b79fa39bdf9d 100644 (file)
@@ -1091,11 +1091,11 @@ int ff_id3v2_parse_apic(AVFormatContext *s, ID3v2ExtraMeta **extra_meta)
             return AVERROR(ENOMEM);
 
         st->disposition      |= AV_DISPOSITION_ATTACHED_PIC;
-        st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
-        st->codec->codec_id   = apic->id;
+        st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
+        st->codecpar->codec_id   = apic->id;
 
         if (AV_RB64(apic->buf->data) == 0x89504e470d0a1a0a)
-            st->codec->codec_id = AV_CODEC_ID_PNG;
+            st->codecpar->codec_id = AV_CODEC_ID_PNG;
 
         if (apic->description[0])
             av_dict_set(&st->metadata, "title", apic->description, 0);