comparison beosaudio.cpp @ 833:c33bf4d10c4c libavformat

minor compilation fix A few files are not in sync with the change of AVStream's codec member from inline struct to pointer. patch by (Sam Hocevar: sam, zoy org)
author michael
date Thu, 11 Aug 2005 22:26:12 +0000
parents 8c55237af288
children edbe5c3717f9
comparison
equal deleted inserted replaced
832:f02966f9bc62 833:c33bf4d10c4c
285 AudioData *s = (AudioData *)s1->priv_data; 285 AudioData *s = (AudioData *)s1->priv_data;
286 AVStream *st; 286 AVStream *st;
287 int ret; 287 int ret;
288 288
289 st = s1->streams[0]; 289 st = s1->streams[0];
290 s->sample_rate = st->codec.sample_rate; 290 s->sample_rate = st->codec->sample_rate;
291 s->channels = st->codec.channels; 291 s->channels = st->codec->channels;
292 ret = audio_open(s, 1, NULL); 292 ret = audio_open(s, 1, NULL);
293 if (ret < 0) 293 if (ret < 0)
294 return -EIO; 294 return -EIO;
295 return 0; 295 return 0;
296 } 296 }
363 if (ret < 0) { 363 if (ret < 0) {
364 av_free(st); 364 av_free(st);
365 return -EIO; 365 return -EIO;
366 } 366 }
367 /* take real parameters */ 367 /* take real parameters */
368 st->codec.codec_type = CODEC_TYPE_AUDIO; 368 st->codec->codec_type = CODEC_TYPE_AUDIO;
369 st->codec.codec_id = s->codec_id; 369 st->codec->codec_id = s->codec_id;
370 st->codec.sample_rate = s->sample_rate; 370 st->codec->sample_rate = s->sample_rate;
371 st->codec.channels = s->channels; 371 st->codec->channels = s->channels;
372 return 0; 372 return 0;
373 av_set_pts_info(s1, 48, 1, 1000000); /* 48 bits pts in us */ 373 av_set_pts_info(s1, 48, 1, 1000000); /* 48 bits pts in us */
374 } 374 }
375 375
376 static int audio_read_packet(AVFormatContext *s1, AVPacket *pkt) 376 static int audio_read_packet(AVFormatContext *s1, AVPacket *pkt)