mirror of
https://github.com/mpv-player/mpv
synced 2025-01-30 03:32:50 +00:00
dont set 0 nBlockAlign
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22284 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b12556dd58
commit
296f360f82
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user