[FFmpeg-devel] [PATCH 2/2] libavformat/dsfdec: Error dsf_read_header fixed.

2015-07-31 Thread Ihar A. Tumashyk
Sample rate is written "as is" in header . Is *should not* be devined by 8. Refer spec.: http://dsd-guide.com/sites/default/files/white- papers/DSFFileFormatSpec_E.pdf After this patch ffprobe will corretly show sample rate for DSF files. Signed-off-by: Ihar A. Tumashyk --- l

[FFmpeg-devel] [PATCH] libavcodec/utils: av_get_exact_bits_per_sample fixed to return "1" for DSD codecs.

2015-07-31 Thread Ihar A. Tumashyk
All DSD codes have 1 bit per sample. https://en.wikipedia.org/wiki/Direct_Stream_Digital Signed-off-by: Ihar A. Tumashyk --- libavcodec/utils.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 5dbd0cf..52bfe01 100644