[FFmpeg-cvslog] r25860 - trunk/libavformat/mpc.c

elenril subversion
Thu Dec 2 10:56:15 CET 2010


Author: elenril
Date: Thu Dec  2 10:56:15 2010
New Revision: 25860

Log:
mpc: read id3v1 tags.

Modified:
   trunk/libavformat/mpc.c

Modified: trunk/libavformat/mpc.c
==============================================================================
--- trunk/libavformat/mpc.c	Wed Dec  1 14:12:39 2010	(r25859)
+++ trunk/libavformat/mpc.c	Thu Dec  2 10:56:15 2010	(r25860)
@@ -22,6 +22,7 @@
 #include "libavcodec/get_bits.h"
 #include "avformat.h"
 #include "apetag.h"
+#include "id3v1.h"
 
 #define MPC_FRAMESIZE  1152
 #define DELAY_FRAMES   32
@@ -95,6 +96,8 @@ static int mpc_read_header(AVFormatConte
     if (!url_is_streamed(s->pb)) {
         int64_t pos = url_ftell(s->pb);
         ff_ape_parse_tag(s);
+        if (!av_metadata_get(s->metadata, "", NULL, AV_METADATA_IGNORE_SUFFIX))
+            ff_id3v1_read(s);
         url_fseek(s->pb, pos, SEEK_SET);
     }
 



More information about the ffmpeg-cvslog mailing list