comparison flvenc.c @ 684:d7c7f7bbdf55 libavformat

proper handling of samplesize
author alex
date Fri, 25 Feb 2005 11:15:12 +0000
parents 54d87ed9b3e4
children 6418c3b8d8ec
comparison
equal deleted inserted replaced
683:095009fc2f35 684:d7c7f7bbdf55
33 put_byte(pb, (value>> 8) & 0xFF ); 33 put_byte(pb, (value>> 8) & 0xFF );
34 put_byte(pb, (value>> 0) & 0xFF ); 34 put_byte(pb, (value>> 0) & 0xFF );
35 } 35 }
36 36
37 static int get_audio_flags(AVCodecContext *enc){ 37 static int get_audio_flags(AVCodecContext *enc){
38 int flags = 0; 38 int flags = (enc->bits_per_sample == 16) ? 0x2 : 0x0;
39 39
40 switch (enc->sample_rate) { 40 switch (enc->sample_rate) {
41 case 44100: 41 case 44100:
42 flags |= 0x0C; 42 flags |= 0x0C;
43 break; 43 break;