diff flvenc.c @ 822:2614d3c1f415 libavformat

kill duplicated get/put_be24()
author michael
date Tue, 19 Jul 2005 14:41:08 +0000
parents feca73904e67
children 441c59f95305
line wrap: on
line diff
--- a/flvenc.c	Tue Jul 19 14:26:41 2005 +0000
+++ b/flvenc.c	Tue Jul 19 14:41:08 2005 +0000
@@ -27,13 +27,6 @@
     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 @@
             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 @@
         flags |= enc->codec_tag<<4;
         break;
     default:
+        av_log(enc, AV_LOG_ERROR, "codec not compatible with flv\n");
         return -1;
     }