summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-01-24 12:13:46 +0000
committerPaul B Mahol <onemda@gmail.com>2013-01-24 12:15:12 +0000
commitdd5689a3bdaafea34ebc73bd3fe9173a7f6c8317 (patch)
treef35a0abb512d4bd3478a30cbc021b7cd8284efd3
parentee8d4a4142886123d05e994f8aef97d7bcf1181e (diff)
downloadffmpeg-streaming-dd5689a3bdaafea34ebc73bd3fe9173a7f6c8317.zip
ffmpeg-streaming-dd5689a3bdaafea34ebc73bd3fe9173a7f6c8317.tar.gz
matroskadec: export codec bits_per_coded_sample
Fixes -codec copy with TTA from matroska to matroska. Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavformat/matroskadec.c1
1 files changed, 1 insertions, 0 deletions
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) {
OpenPOWER on IntegriCloud