Mercurial > libavformat.hg
changeset 3519:55545ebc90eb libavformat
merge decl & init
author | michael |
---|---|
date | Thu, 26 Jun 2008 22:55:39 +0000 |
parents | 0a83cbe75b0b |
children | 2b1a7c3650c4 |
files | psxstr.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/psxstr.c Thu Jun 26 22:53:43 2008 +0000 +++ b/psxstr.c Thu Jun 26 22:55:39 2008 +0000 @@ -202,7 +202,7 @@ 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 @@ 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 */