[FFmpeg-cvslog] r14001 - trunk/libavformat/psxstr.c

michael subversion
Fri Jun 27 00:55:39 CEST 2008


Author: michael
Date: Fri Jun 27 00:55:39 2008
New Revision: 14001

Log:
merge decl & init


Modified:
   trunk/libavformat/psxstr.c

Modified: trunk/libavformat/psxstr.c
==============================================================================
--- trunk/libavformat/psxstr.c	(original)
+++ trunk/libavformat/psxstr.c	Fri Jun 27 00:55:39 2008
@@ -202,7 +202,7 @@ static int str_read_packet(AVFormatConte
 
         case CDXA_TYPE_AUDIO:
             if(str->channels[channel].audio_stream_index < 0){
-                int fmt;
+                int fmt = sector[0x13];
                 /* allocate a new AVStream */
                 st = av_new_stream(s, 0);
                 if (!st)
@@ -210,7 +210,6 @@ static int str_read_packet(AVFormatConte
 
                 str->channels[channel].audio_stream_index = st->index;
 
-                fmt = sector[0x13];
                 st->codec->codec_type  = CODEC_TYPE_AUDIO;
                 st->codec->codec_id    = CODEC_ID_ADPCM_XA;
                 st->codec->codec_tag   = 0;  /* no fourcc */




More information about the ffmpeg-cvslog mailing list