|
|
@ -27,6 +27,8 @@ |
|
|
|
#include "internal.h" |
|
|
|
#include "internal.h" |
|
|
|
#include "id3v2.h" |
|
|
|
#include "id3v2.h" |
|
|
|
#include "id3v1.h" |
|
|
|
#include "id3v1.h" |
|
|
|
|
|
|
|
#include "replaygain.h" |
|
|
|
|
|
|
|
|
|
|
|
#include "libavcodec/mpegaudiodecheader.h" |
|
|
|
#include "libavcodec/mpegaudiodecheader.h" |
|
|
|
|
|
|
|
|
|
|
|
#define XING_FLAG_FRAMES 0x01 |
|
|
|
#define XING_FLAG_FRAMES 0x01 |
|
|
@ -194,6 +196,7 @@ static int mp3_read_header(AVFormatContext *s) |
|
|
|
{ |
|
|
|
{ |
|
|
|
AVStream *st; |
|
|
|
AVStream *st; |
|
|
|
int64_t off; |
|
|
|
int64_t off; |
|
|
|
|
|
|
|
int ret; |
|
|
|
|
|
|
|
|
|
|
|
st = avformat_new_stream(s, NULL); |
|
|
|
st = avformat_new_stream(s, NULL); |
|
|
|
if (!st) |
|
|
|
if (!st) |
|
|
@ -215,6 +218,10 @@ static int mp3_read_header(AVFormatContext *s) |
|
|
|
if (mp3_parse_vbr_tags(s, st, off) < 0) |
|
|
|
if (mp3_parse_vbr_tags(s, st, off) < 0) |
|
|
|
avio_seek(s->pb, off, SEEK_SET); |
|
|
|
avio_seek(s->pb, off, SEEK_SET); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ret = ff_replaygain_export(st, s->metadata); |
|
|
|
|
|
|
|
if (ret < 0) |
|
|
|
|
|
|
|
return ret; |
|
|
|
|
|
|
|
|
|
|
|
/* the parameters will be extracted from the compressed bitstream */ |
|
|
|
/* the parameters will be extracted from the compressed bitstream */ |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|