Commit 2bda3f4d authored by michael's avatar michael

Assume mono if no other information for raw.

Should fix issue687


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15631 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ddb6d09f
...@@ -113,7 +113,8 @@ static int raw_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -113,7 +113,8 @@ static int raw_read_header(AVFormatContext *s, AVFormatParameters *ap)
switch(st->codec->codec_type) { switch(st->codec->codec_type) {
case CODEC_TYPE_AUDIO: case CODEC_TYPE_AUDIO:
st->codec->sample_rate = ap->sample_rate; 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); av_set_pts_info(st, 64, 1, st->codec->sample_rate);
break; break;
case CODEC_TYPE_VIDEO: case CODEC_TYPE_VIDEO:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment