comparison libmpcodecs/ad_ffmpeg.c @ 7958:2a5def1e08d7

10l - fixed wma version misdetection
author alex
date Tue, 29 Oct 2002 16:40:45 +0000
parents 26fd599d4bad
children 1bce6e325946
comparison
equal deleted inserted replaced
7957:31fd09cc9ba2 7958:2a5def1e08d7
64 lavc_context->channels = sh_audio->wf->nChannels; 64 lavc_context->channels = sh_audio->wf->nChannels;
65 lavc_context->sample_rate = sh_audio->wf->nSamplesPerSec; 65 lavc_context->sample_rate = sh_audio->wf->nSamplesPerSec;
66 lavc_context->bit_rate = sh_audio->wf->nAvgBytesPerSec * 8; 66 lavc_context->bit_rate = sh_audio->wf->nAvgBytesPerSec * 8;
67 lavc_context->fourcc = sh_audio->format; 67 lavc_context->fourcc = sh_audio->format;
68 lavc_context->block_align = sh_audio->wf->nBlockAlign; 68 lavc_context->block_align = sh_audio->wf->nBlockAlign;
69 lavc_context->codec_id = lavc_codec->id;
69 70
70 /* alloc extra data */ 71 /* alloc extra data */
71 if (sh_audio->wf->cbSize > 0) { 72 if (sh_audio->wf->cbSize > 0) {
72 lavc_context->extradata = malloc(sh_audio->wf->cbSize); 73 lavc_context->extradata = malloc(sh_audio->wf->cbSize);
73 lavc_context->extradata_size = sh_audio->wf->cbSize; 74 lavc_context->extradata_size = sh_audio->wf->cbSize;