From: JungYumin Date: Wed, 8 May 2013 08:50:53 +0000 (+0900) Subject: Changed ffmpeg log level to AV_LOG_QUIET X-Git-Tag: submit/tizen_2.1/20130516.045702~4 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fframework%2Fnative%2Fmedia.git;a=commitdiff_plain;h=6ae87c0430789610301aef6efa1ad6123dbd380e Changed ffmpeg log level to AV_LOG_QUIET Change-Id: Ib30573595829557232300b9a0a1207a296003f2f Signed-off-by: JungYumin --- diff --git a/src/FMedia_AacDecoder.cpp b/src/FMedia_AacDecoder.cpp index b1c3d03..831d104 100644 --- a/src/FMedia_AacDecoder.cpp +++ b/src/FMedia_AacDecoder.cpp @@ -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); diff --git a/src/FMedia_AacEncoder.cpp b/src/FMedia_AacEncoder.cpp index 32d5cb8..c14ad1d 100644 --- a/src/FMedia_AacEncoder.cpp +++ b/src/FMedia_AacEncoder.cpp @@ -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); diff --git a/src/FMedia_AmrDecoder.cpp b/src/FMedia_AmrDecoder.cpp index 4d0b45d..8035ded 100644 --- a/src/FMedia_AmrDecoder.cpp +++ b/src/FMedia_AmrDecoder.cpp @@ -73,6 +73,7 @@ _AmrDecoder::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_AMR_NB); diff --git a/src/FMedia_G711Decoder.cpp b/src/FMedia_G711Decoder.cpp index 571e5bd..2097407 100755 --- a/src/FMedia_G711Decoder.cpp +++ b/src/FMedia_G711Decoder.cpp @@ -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; diff --git a/src/FMedia_H263Decoder.cpp b/src/FMedia_H263Decoder.cpp index fecf276..6849322 100644 --- a/src/FMedia_H263Decoder.cpp +++ b/src/FMedia_H263Decoder.cpp @@ -64,6 +64,7 @@ _H263Decoder::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_H263); diff --git a/src/FMedia_H263Encoder.cpp b/src/FMedia_H263Encoder.cpp index e7cd525..9caf3f0 100644 --- a/src/FMedia_H263Encoder.cpp +++ b/src/FMedia_H263Encoder.cpp @@ -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) { diff --git a/src/FMedia_H264Decoder.cpp b/src/FMedia_H264Decoder.cpp index 85b1986..0348bee 100644 --- a/src/FMedia_H264Decoder.cpp +++ b/src/FMedia_H264Decoder.cpp @@ -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); diff --git a/src/FMedia_Mp3Decoder.cpp b/src/FMedia_Mp3Decoder.cpp index a400ec3..967ddbf 100644 --- a/src/FMedia_Mp3Decoder.cpp +++ b/src/FMedia_Mp3Decoder.cpp @@ -70,6 +70,7 @@ _Mp3Decoder::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_MP3); diff --git a/src/FMedia_Mpeg4Decoder.cpp b/src/FMedia_Mpeg4Decoder.cpp index a29e526..ed5f41f 100644 --- a/src/FMedia_Mpeg4Decoder.cpp +++ b/src/FMedia_Mpeg4Decoder.cpp @@ -63,6 +63,7 @@ _Mpeg4Decoder::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_MPEG4); diff --git a/src/FMedia_Mpeg4Encoder.cpp b/src/FMedia_Mpeg4Encoder.cpp index c06b2ea..1725f4f 100644 --- a/src/FMedia_Mpeg4Encoder.cpp +++ b/src/FMedia_Mpeg4Encoder.cpp @@ -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);