|
|
@ -312,15 +312,9 @@ static int swf_write_header(AVFormatContext *s) |
|
|
|
/* start sound */ |
|
|
|
/* start sound */ |
|
|
|
put_swf_tag(s, TAG_STREAMHEAD2); |
|
|
|
put_swf_tag(s, TAG_STREAMHEAD2); |
|
|
|
switch(audio_enc->sample_rate) { |
|
|
|
switch(audio_enc->sample_rate) { |
|
|
|
case 11025: |
|
|
|
case 11025: v |= 1 << 2; break; |
|
|
|
v |= 1 << 2; |
|
|
|
case 22050: v |= 2 << 2; break; |
|
|
|
break; |
|
|
|
case 44100: v |= 3 << 2; break; |
|
|
|
case 22050: |
|
|
|
|
|
|
|
v |= 2 << 2; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case 44100: |
|
|
|
|
|
|
|
v |= 3 << 2; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
default: |
|
|
|
default: |
|
|
|
/* not supported */ |
|
|
|
/* not supported */ |
|
|
|
av_log(s, AV_LOG_ERROR, "swf does not support that sample rate, choose from (44100, 22050, 11025).\n"); |
|
|
|
av_log(s, AV_LOG_ERROR, "swf does not support that sample rate, choose from (44100, 22050, 11025).\n"); |
|
|
|