]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/flacdec.c
Merge commit 'b8962d64cc71af241601bcab5c3fcdc5735ef4ae'
[ffmpeg] / libavformat / flacdec.c
index c4f9d86a8ba7a83f586f0f024583ed5cb0efff36..c291393954d15f0be07f79c27a3863d39c2ff91d 100644 (file)
@@ -138,8 +138,11 @@ static int flac_read_header(AVFormatContext *s)
             if (metadata_type == FLAC_METADATA_TYPE_VORBIS_COMMENT) {
                 AVDictionaryEntry *chmask;
 
-                if (ff_vorbis_comment(s, &s->metadata, buffer, metadata_size, 1)) {
+                ret = ff_vorbis_comment(s, &s->metadata, buffer, metadata_size, 1);
+                if (ret < 0) {
                     av_log(s, AV_LOG_WARNING, "error parsing VorbisComment metadata\n");
+                } else if (ret > 0) {
+                    s->event_flags |= AVFMT_EVENT_FLAG_METADATA_UPDATED;
                 }
 
                 /* parse the channels mask if present */