diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-07-19 14:41:08 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-07-19 14:41:08 +0000 |
commit | a254c5745b27eec28430402f49937d9505691f20 (patch) | |
tree | 5545b107bf5b9850189baf2c55451d2e45620d49 /libavformat/flvenc.c | |
parent | dd9f59160e4809fba631b555d4e6022e0b4340ec (diff) | |
download | ffmpeg-a254c5745b27eec28430402f49937d9505691f20.tar.gz |
kill duplicated get/put_be24()
Originally committed as revision 4460 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/flvenc.c')
-rw-r--r-- | libavformat/flvenc.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index 5f3f4c5af7..d998f5962c 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -27,13 +27,6 @@ typedef struct FLVContext { int reserved; } FLVContext; -static void put_be24(ByteIOContext *pb, int value) -{ - put_byte(pb, (value>>16) & 0xFF ); - put_byte(pb, (value>> 8) & 0xFF ); - put_byte(pb, (value>> 0) & 0xFF ); -} - static int get_audio_flags(AVCodecContext *enc){ int flags = (enc->bits_per_sample == 16) ? 0x2 : 0x0; @@ -52,6 +45,7 @@ static int get_audio_flags(AVCodecContext *enc){ flags |= 0x00; break; default: + av_log(enc, AV_LOG_ERROR, "flv doesnt support that sample rate, choose from (44100, 22050, 11025)\n"); return -1; } @@ -75,6 +69,7 @@ static int get_audio_flags(AVCodecContext *enc){ flags |= enc->codec_tag<<4; break; default: + av_log(enc, AV_LOG_ERROR, "codec not compatible with flv\n"); return -1; } |