aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-02-20 16:18:59 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-02-20 16:18:59 +0000
commita185f52a86c721b8c0c46597befd25d617456f6a (patch)
tree93a787fbc81f924b237abcff472af6e9ef6926d6 /libavformat
parent5b77a81a8dbe277d5e00a1723d5f7186a8528d82 (diff)
downloadffmpeg-a185f52a86c721b8c0c46597befd25d617456f6a.tar.gz
try to fill in missing bits_per_sample
Originally committed as revision 8043 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index cabe3a7704..04ee6f2636 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2018,6 +2018,9 @@ int av_find_stream_info(AVFormatContext *ic)
st->r_frame_rate.den = st->time_base.num;
}
}
+ }else if(st->codec->codec_type == CODEC_TYPE_AUDIO) {
+ if(!st->codec->bits_per_sample)
+ st->codec->bits_per_sample= av_get_bits_per_sample(st->codec->codec_id);
}
}