changeset 1804:302115721ef5 libavformat

try to fill in missing bits_per_sample
author michael
date Tue, 20 Feb 2007 16:18:59 +0000
parents f05a4a9b1d19
children 2c2e787782bb
files utils.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Tue Feb 20 14:31:43 2007 +0000
+++ b/utils.c	Tue Feb 20 16:18:59 2007 +0000
@@ -2018,6 +2018,9 @@
                     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);
         }
     }