diff --git a/libavformat/ffmdec.c b/libavformat/ffmdec.c index d2f16336c2..09f5779f68 100644 --- a/libavformat/ffmdec.c +++ b/libavformat/ffmdec.c @@ -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; diff --git a/libavformat/ffmenc.c b/libavformat/ffmenc.c index eb97b8ba04..52d55d6936 100644 --- a/libavformat/ffmenc.c +++ b/libavformat/ffmenc.c @@ -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;