Mercurial > mplayer.hg
changeset 34630:e50affe874a9
Minor simplification.
Part of patch by Benot Thbaudeau [benoit thebaudeau () advansee com].
author | reimar |
---|---|
date | Mon, 13 Feb 2012 19:33:48 +0000 |
parents | 531c69f090da |
children | fde6f34c5eb0 |
files | libmpdemux/demux_audio.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_audio.c Mon Feb 13 16:11:37 2012 +0000 +++ b/libmpdemux/demux_audio.c Mon Feb 13 19:33:48 2012 +0000 @@ -415,11 +415,9 @@ free(mp3_found); mp3_found = NULL; if(s->end_pos && (s->flags & MP_STREAM_SEEK) == MP_STREAM_SEEK) { - char tag[4]; stream_seek(s,s->end_pos-128); - stream_read(s,tag,3); - tag[3] = '\0'; - if(!strcmp(tag,"TAG")) { + stream_read(s,hdr,3); + if(!memcmp(hdr,"TAG",3)) { char buf[31]; uint8_t g; demuxer->movi_end = stream_tell(s)-3;