[MPlayer-cvslog] r34718 - trunk/libmpdemux/demux_audio.c
reimar
subversion at mplayerhq.hu
Mon Feb 13 20:33:48 CET 2012
Author: reimar
Date: Mon Feb 13 20:33:48 2012
New Revision: 34718
Log:
Minor simplification.
Part of patch by Benoît Thébaudeau [benoit thebaudeau () advansee com].
Modified:
trunk/libmpdemux/demux_audio.c
Modified: trunk/libmpdemux/demux_audio.c
==============================================================================
--- trunk/libmpdemux/demux_audio.c Mon Feb 13 17:11:37 2012 (r34717)
+++ trunk/libmpdemux/demux_audio.c Mon Feb 13 20:33:48 2012 (r34718)
@@ -415,11 +415,9 @@ static int demux_audio_open(demuxer_t* d
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;
More information about the MPlayer-cvslog
mailing list