mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Assume mono if no other information for raw.
Should fix issue687 Originally committed as revision 15631 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
357f45d9bc
commit
bf9067cf3e
@ -113,7 +113,8 @@ static int raw_read_header(AVFormatContext *s, AVFormatParameters *ap)
|
||||
switch(st->codec->codec_type) {
|
||||
case CODEC_TYPE_AUDIO:
|
||||
st->codec->sample_rate = ap->sample_rate;
|
||||
st->codec->channels = ap->channels;
|
||||
if(ap->channels) st->codec->channels = ap->channels;
|
||||
else st->codec->channels = 1;
|
||||
av_set_pts_info(st, 64, 1, st->codec->sample_rate);
|
||||
break;
|
||||
case CODEC_TYPE_VIDEO:
|
||||
|
Loading…
Reference in New Issue
Block a user