OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88a849c
)
avformat/dsfdec: set bit_rate, fixes duration estimation
author
Paul B Mahol
<onemda@gmail.com>
Sun, 1 May 2016 14:16:39 +0000
(16:16 +0200)
committer
Paul B Mahol
<onemda@gmail.com>
Sun, 1 May 2016 14:16:39 +0000
(16:16 +0200)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavformat/dsfdec.c
patch
|
blob
|
history
diff --git
a/libavformat/dsfdec.c
b/libavformat/dsfdec.c
index
a8c78e4
..
f16b397
100644
(file)
--- a/
libavformat/dsfdec.c
+++ b/
libavformat/dsfdec.c
@@
-125,6
+125,7
@@
static int dsf_read_header(AVFormatContext *s)
return AVERROR_INVALIDDATA;
}
st->codecpar->block_align *= st->codecpar->channels;
+ st->codecpar->bit_rate = st->codecpar->channels * st->codecpar->sample_rate * 8LL;
avio_skip(pb, 4);
/* data chunk */