dont set 0 nBlockAlign

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22284 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2007-02-20 16:16:53 +00:00
parent b12556dd58
commit 296f360f82
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ static demuxer_t* demux_open_lavf(demuxer_t *demuxer){
wf->nChannels= codec->channels;
wf->nSamplesPerSec= codec->sample_rate;
wf->nAvgBytesPerSec= codec->bit_rate/8;
wf->nBlockAlign= codec->block_align;
wf->nBlockAlign= codec->block_align ? codec->block_align : 1;
wf->wBitsPerSample= codec->bits_per_sample;
wf->cbSize= codec->extradata_size;
if(codec->extradata_size){