Browse Source

Fix wrong flags for S16LE and S16BE audio in FLV files.

patch by Allan Hsu, allan counterpop net

Originally committed as revision 7194 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Allan Hsu Diego Biurrun 18 years ago
parent
commit
56cca5f10c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/flvenc.c

+ 2
- 2
libavformat/flvenc.c View File

@@ -65,10 +65,10 @@ static int get_audio_flags(AVCodecContext *enc){
case CODEC_ID_PCM_S8:
break;
case CODEC_ID_PCM_S16BE:
flags |= 0x60 | 0x2;
flags |= 0x2;
break;
case CODEC_ID_PCM_S16LE:
flags |= 0x2;
flags |= 0x30 | 0x2;
break;
case CODEC_ID_ADPCM_SWF:
flags |= 0x10;


Loading…
Cancel
Save