Mercurial > mplayer.hg
changeset 22266:273a5ecea962
dont set 0 nBlockAlign
author | michael |
---|---|
date | Tue, 20 Feb 2007 16:16:53 +0000 |
parents | 02333de881a7 |
children | 2fc28a323c53 |
files | libmpdemux/demux_lavf.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c Tue Feb 20 16:12:46 2007 +0000 +++ b/libmpdemux/demux_lavf.c Tue Feb 20 16:16:53 2007 +0000 @@ -284,7 +284,7 @@ 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){