Commit 7f1400b6 authored by banan's avatar banan

Fix breakage introduced by setting the sample_fmt to SAMPLE_FMT_NONE (r20623). This makes

streaming to ffserver work again.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20869 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 80279b14
......@@ -354,6 +354,7 @@ static int ffm_read_header(AVFormatContext *s, AVFormatParameters *ap)
codec->sample_rate = get_be32(pb);
codec->channels = get_le16(pb);
codec->frame_size = get_le16(pb);
codec->sample_fmt = get_le16(pb);
break;
default:
goto fail;
......
......@@ -172,6 +172,7 @@ static int ffm_write_header(AVFormatContext *s)
put_be32(pb, codec->sample_rate);
put_le16(pb, codec->channels);
put_le16(pb, codec->frame_size);
put_le16(pb, codec->sample_fmt);
break;
default:
return -1;
......
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