Changed ffmpeg log level to AV_LOG_QUIET
authorJungYumin <y_m.jung@samsung.com>
Wed, 8 May 2013 08:50:53 +0000 (17:50 +0900)
committerJungYumin <y_m.jung@samsung.com>
Wed, 8 May 2013 08:50:53 +0000 (17:50 +0900)
Change-Id: Ib30573595829557232300b9a0a1207a296003f2f
Signed-off-by: JungYumin <y_m.jung@samsung.com>
src/FMedia_AacDecoder.cpp
src/FMedia_AacEncoder.cpp
src/FMedia_AmrDecoder.cpp
src/FMedia_G711Decoder.cpp
src/FMedia_H263Decoder.cpp
src/FMedia_H263Encoder.cpp
src/FMedia_H264Decoder.cpp
src/FMedia_Mp3Decoder.cpp
src/FMedia_Mpeg4Decoder.cpp
src/FMedia_Mpeg4Encoder.cpp

index b1c3d03..831d104 100644 (file)
@@ -81,6 +81,7 @@ _AacDecoder::Construct(const Tizen::Base::Collection::HashMap* pOption)
 
        SysAssertf((__pCodecCtx == null && __pCodec == null), " Already Constructed .");
 
+       av_log_set_level (AV_LOG_QUIET);
        avcodec_register_all();
 
        __pCodec = avcodec_find_decoder(CODEC_ID_AAC);
index 32d5cb8..c14ad1d 100644 (file)
@@ -85,6 +85,7 @@ _AacEncoder::Construct(const Tizen::Base::Collection::HashMap* pOption)
 
        SysTryReturnResult(NID_MEDIA, __pCodecCtx == null, E_INVALID_STATE, "already constructed");
 
+       av_log_set_level (AV_LOG_QUIET);
        avcodec_register_all();
 
        __pCodec = avcodec_find_encoder(CODEC_ID_AAC);
index 4d0b45d..8035ded 100644 (file)
@@ -73,6 +73,7 @@ _AmrDecoder::Construct(const Tizen::Base::Collection::HashMap* pOption)
 
        SysAssertf((__pCodecCtx == null && __pCodec == null), " Already Constructed .");\r
 
+       av_log_set_level (AV_LOG_QUIET);
        avcodec_register_all();
 
        __pCodec = avcodec_find_decoder(CODEC_ID_AMR_NB);
index 571e5bd..2097407 100755 (executable)
@@ -74,6 +74,7 @@ _G711Decoder::Construct(const Tizen::Base::Collection::HashMap* pOption)
        SysTryReturnResult(NID_MEDIA, pOption != null, E_INVALID_ARG, "pOtion is null");
        SysTryReturnResult(NID_MEDIA, __type >= G711_ALAW && __type <= G711_MULAW, E_INVALID_ARG, "__type is invalid:%d", __type);
 
+       av_log_set_level (AV_LOG_QUIET);
        avcodec_register_all();
 
        AVCodecID codecId = (__type == G711_ALAW) ? CODEC_ID_PCM_ALAW : CODEC_ID_PCM_MULAW;
index fecf276..6849322 100644 (file)
@@ -64,6 +64,7 @@ _H263Decoder::Construct(const Tizen::Base::Collection::HashMap* pOption)
 
        SysAssertf((__pCodecCtx == null && __pCodec == null), " Already Constructed .");\r
 
+       av_log_set_level (AV_LOG_QUIET);
        avcodec_register_all();
 
        __pCodec = avcodec_find_decoder(CODEC_ID_H263);
index e7cd525..9caf3f0 100644 (file)
@@ -76,7 +76,7 @@ _H263Encoder::Construct(const Tizen::Base::Collection::HashMap* pOption)
 
        SysTryReturnResult(NID_MEDIA, __pCodecCtx == null, E_INVALID_STATE, "already constructed");
 
-       //avcodec_init();
+       av_log_set_level (AV_LOG_QUIET);
        avcodec_register_all();
 
        __pCodec = avcodec_find_encoder(CODEC_ID_H263P);
@@ -100,7 +100,6 @@ _H263Encoder::Construct(const Tizen::Base::Collection::HashMap* pOption)
        __pCodecCtx->qmax = MAX_QP;
        __pCodecCtx->mpeg_quant = 0;
        __pCodecCtx->profile = 0;
-       //__pCodecCtx->rtp_payload_size = 1024;
        __pCodecCtx->mb_decision = FF_MB_DECISION_BITS;
        if (pOption != null)
        {
index 85b1986..0348bee 100644 (file)
@@ -109,6 +109,7 @@ _H264Decoder::Construct(const Tizen::Base::Collection::HashMap* pOption)
                }
        }
 
+       av_log_set_level (AV_LOG_QUIET);
        avcodec_register_all();
 
        __pCodec = avcodec_find_decoder(CODEC_ID_H264);
index a400ec3..967ddbf 100644 (file)
@@ -70,6 +70,7 @@ _Mp3Decoder::Construct(const Tizen::Base::Collection::HashMap* pOption)
 
        SysAssertf((__pCodecCtx == null && __pCodec == null), " Already Constructed .");\r
 
+       av_log_set_level (AV_LOG_QUIET);
        avcodec_register_all();
 
        __pCodec = avcodec_find_decoder(CODEC_ID_MP3);
index a29e526..ed5f41f 100644 (file)
@@ -63,6 +63,7 @@ _Mpeg4Decoder::Construct(const Tizen::Base::Collection::HashMap* pOption)
 
        SysAssertf((__pCodecCtx == null && __pCodec == null), " Already Constructed .");\r
 
+       av_log_set_level (AV_LOG_QUIET);
        avcodec_register_all();
 
        __pCodec = avcodec_find_decoder(CODEC_ID_MPEG4);
index c06b2ea..1725f4f 100644 (file)
@@ -77,7 +77,7 @@ _Mpeg4Encoder::Construct(const Tizen::Base::Collection::HashMap* pOption)
 
        SysTryReturnResult(NID_MEDIA, __pCodecCtx == null, E_INVALID_STATE, "already constructed");
 
-       //avcodec_init();
+       av_log_set_level (AV_LOG_QUIET);
        avcodec_register_all();
 
        __pCodec = avcodec_find_encoder(AV_CODEC_ID_MPEG4);