aboutsummaryrefslogtreecommitdiffstats
path: root/src/mp3_decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mp3_decode.c')
-rw-r--r--src/mp3_decode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mp3_decode.c b/src/mp3_decode.c
index ed108c37b..d31db2e86 100644
--- a/src/mp3_decode.c
+++ b/src/mp3_decode.c
@@ -190,7 +190,9 @@ int decodeNextFrameHeader(mp3DecodeData * data) {
}
if(mad_header_decode(&data->frame.header,&data->stream)) {
#ifdef HAVE_ID3TAG
- if((data->stream).error==MAD_ERROR_LOSTSYNC) {
+ if((data->stream).error==MAD_ERROR_LOSTSYNC &&
+ (data->stream).this_frame)
+ {
signed long tagsize = id3_tag_query(
(data->stream).this_frame,
(data->stream).bufend-