[MPlayer-cvslog] r26906 - trunk/libmpdemux/demuxer.c

reimar subversion at mplayerhq.hu
Tue May 27 19:30:21 CEST 2008


Author: reimar
Date: Tue May 27 19:30:20 2008
New Revision: 26906

Log:
Cosmetics: simplify


Modified:
   trunk/libmpdemux/demuxer.c

Modified: trunk/libmpdemux/demuxer.c
==============================================================================
--- trunk/libmpdemux/demuxer.c	(original)
+++ trunk/libmpdemux/demuxer.c	Tue May 27 19:30:20 2008
@@ -265,10 +265,9 @@ sh_audio_t* new_sh_audio_aid(demuxer_t *
     if(demuxer->a_streams[id]){
         mp_msg(MSGT_DEMUXER,MSGL_WARN,MSGTR_AudioStreamRedefined,id);
     } else {
-        sh_audio_t *sh;
+        sh_audio_t *sh = calloc(1, sizeof(sh_audio_t));
         mp_msg(MSGT_DEMUXER,MSGL_V,MSGTR_FoundAudioStream,id);
-        demuxer->a_streams[id]=calloc(1, sizeof(sh_audio_t));
-        sh = demuxer->a_streams[id];
+        demuxer->a_streams[id] = sh;
         // set some defaults
         sh->samplesize=2;
         sh->sample_format=AF_FORMAT_S16_NE;



More information about the MPlayer-cvslog mailing list