diff flvenc.c @ 684:d7c7f7bbdf55 libavformat

proper handling of samplesize
author alex
date Fri, 25 Feb 2005 11:15:12 +0000
parents 54d87ed9b3e4
children 6418c3b8d8ec
line wrap: on
line diff
--- a/flvenc.c	Thu Feb 24 19:08:50 2005 +0000
+++ b/flvenc.c	Fri Feb 25 11:15:12 2005 +0000
@@ -35,7 +35,7 @@
 }
 
 static int get_audio_flags(AVCodecContext *enc){
-    int flags = 0;
+    int flags = (enc->bits_per_sample == 16) ? 0x2 : 0x0;
 
     switch (enc->sample_rate) {
         case    44100: