diff options
Diffstat (limited to 'libavformat/flacdec.c')
-rw-r--r-- | libavformat/flacdec.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavformat/flacdec.c b/libavformat/flacdec.c index 94d916a728..83758b2be0 100644 --- a/libavformat/flacdec.c +++ b/libavformat/flacdec.c @@ -36,14 +36,14 @@ static int flac_read_header(AVFormatContext *s, st->need_parsing = AVSTREAM_PARSE_FULL; /* the parameters will be extracted from the compressed bitstream */ - /* skip ID3v2 header if found */ - ret = get_buffer(s->pb, buf, ID3v2_HEADER_SIZE); - if (ret == ID3v2_HEADER_SIZE && ff_id3v2_match(buf)) { - int len = ff_id3v2_tag_len(buf); - url_fseek(s->pb, len - ID3v2_HEADER_SIZE, SEEK_CUR); - } else { - url_fseek(s->pb, 0, SEEK_SET); - } + /* skip ID3v2 header if found */ + ret = get_buffer(s->pb, buf, ID3v2_HEADER_SIZE); + if (ret == ID3v2_HEADER_SIZE && ff_id3v2_match(buf)) { + int len = ff_id3v2_tag_len(buf); + url_fseek(s->pb, len - ID3v2_HEADER_SIZE, SEEK_CUR); + } else { + url_fseek(s->pb, 0, SEEK_SET); + } return 0; } |