== Sequencer ==
This fixes (works around): [#13598] LOAD / SAVE: Segfault after attempting to load surround encoded file
This commit is contained in:
parent
f8d6057808
commit
3110f63162
@ -150,6 +150,15 @@ struct hdaudio * sound_open_hdaudio(char * filename)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pCodecCtx->channels > 2) {
|
||||||
|
fprintf(stderr, "Sorry, audio file has too many channels."
|
||||||
|
" Will fix in future, but resampler doesn't support "
|
||||||
|
"this.\n");
|
||||||
|
avcodec_close(pCodecCtx);
|
||||||
|
av_close_input_file(pFormatCtx);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
rval = (struct hdaudio *)MEM_mallocN(sizeof(struct hdaudio),
|
rval = (struct hdaudio *)MEM_mallocN(sizeof(struct hdaudio),
|
||||||
"hdaudio struct");
|
"hdaudio struct");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user