Revision 01f4895c libavformat/psxstr.c

View differences:

libavformat/psxstr.c
182 182

  
183 183
                str->channels[channel].video_stream_index = st->index;
184 184

  
185
                st->codec.codec_type = CODEC_TYPE_VIDEO;
186
                st->codec.codec_id = CODEC_ID_MDEC; 
187
                st->codec.codec_tag = 0;  /* no fourcc */
188
                st->codec.width = str->channels[channel].width;
189
                st->codec.height = str->channels[channel].height;
185
                st->codec->codec_type = CODEC_TYPE_VIDEO;
186
                st->codec->codec_id = CODEC_ID_MDEC; 
187
                st->codec->codec_tag = 0;  /* no fourcc */
188
                st->codec->width = str->channels[channel].width;
189
                st->codec->height = str->channels[channel].height;
190 190
            }
191 191
            break;
192 192

  
......
212 212
                str->channels[channel].audio_stream_index = st->index;
213 213

  
214 214
                fmt = sector[0x13];
215
                st->codec.codec_type = CODEC_TYPE_AUDIO;
216
                st->codec.codec_id = CODEC_ID_ADPCM_XA; 
217
                st->codec.codec_tag = 0;  /* no fourcc */
218
                st->codec.channels = (fmt&1)?2:1;
219
                st->codec.sample_rate = (fmt&4)?18900:37800;
220
            //    st->codec.bit_rate = 0; //FIXME;
221
                st->codec.block_align = 128;
215
                st->codec->codec_type = CODEC_TYPE_AUDIO;
216
                st->codec->codec_id = CODEC_ID_ADPCM_XA; 
217
                st->codec->codec_tag = 0;  /* no fourcc */
218
                st->codec->channels = (fmt&1)?2:1;
219
                st->codec->sample_rate = (fmt&4)?18900:37800;
220
            //    st->codec->bit_rate = 0; //FIXME;
221
                st->codec->block_align = 128;
222 222
            }
223 223
            break;
224 224

  

Also available in: Unified diff