[FFmpeg-cvslog] matroskadec: export codec bits_per_coded_sample
Paul B Mahol
git at videolan.org
Thu Jan 24 13:18:46 CET 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Jan 24 12:13:46 2013 +0000| [dd5689a3bdaafea34ebc73bd3fe9173a7f6c8317] | committer: Paul B Mahol
matroskadec: export codec bits_per_coded_sample
Fixes -codec copy with TTA from matroska to matroska.
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dd5689a3bdaafea34ebc73bd3fe9173a7f6c8317
---
libavformat/matroskadec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 87c4a39..1a15558 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1788,6 +1788,7 @@ static int matroska_read_header(AVFormatContext *s)
st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
st->codec->sample_rate = track->audio.out_samplerate;
st->codec->channels = track->audio.channels;
+ st->codec->bits_per_coded_sample = track->audio.bitdepth;
if (st->codec->codec_id != AV_CODEC_ID_AAC)
st->need_parsing = AVSTREAM_PARSE_HEADERS;
} else if (track->type == MATROSKA_TRACK_TYPE_SUBTITLE) {
More information about the ffmpeg-cvslog
mailing list