[FFmpeg-devel] [PATCH 09/10] avformat/iff: report actual DSD sample rate

Peter Ross pross at xvid.org
Tue May 6 14:39:29 CEST 2014


Signed-off-by: Peter Ross <pross at xvid.org>
---
 libavformat/iff.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/iff.c b/libavformat/iff.c
index 62f0b83..a9d563a 100644
--- a/libavformat/iff.c
+++ b/libavformat/iff.c
@@ -289,7 +289,7 @@ static int parse_dsd_prop(AVFormatContext *s, AVStream *st, uint64_t eof)
         case MKTAG('F','S',' ',' '):
             if (size < 4)
                 return AVERROR_INVALIDDATA;
-            st->codec->sample_rate = avio_rb32(pb) / 8;
+            st->codec->sample_rate = avio_rb32(pb);
             break;
 
         case MKTAG('I','D','3',' '):
-- 
1.8.3.2

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140506/fb75897b/attachment.asc>


More information about the ffmpeg-devel mailing list