From: Sejun Park Date: Tue, 27 Dec 2016 05:15:06 +0000 (+0900) Subject: fixed svace issue X-Git-Tag: accepted/tizen/3.0.m2/mobile/20170104.122239^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_3.0.m2_wearable;p=platform%2Fcore%2Fapi%2Fmediacodec.git fixed svace issue Change-Id: I9e66e28b513f7f0de72509dee5681b391a4e426c --- diff --git a/packaging/capi-media-codec.spec b/packaging/capi-media-codec.spec index 2665e0c..1646be8 100755 --- a/packaging/capi-media-codec.spec +++ b/packaging/capi-media-codec.spec @@ -1,7 +1,7 @@ Name: capi-media-codec Summary: A Media Codec library in Tizen Native API Version: 0.5.2 -Release: 0 +Release: 1 Group: Multimedia/API License: Apache-2.0 Source0: %{name}-%{version}.tar.gz diff --git a/src/media_codec_port_gst.c b/src/media_codec_port_gst.c index 9d5c3b2..71a3749 100755 --- a/src/media_codec_port_gst.c +++ b/src/media_codec_port_gst.c @@ -718,43 +718,6 @@ int __mc_set_caps_streamheader(mc_gst_core_t *core, GstMCBuffer *mcbuffer, guint return ret; } -int __mc_get_codecdata_size(mc_gst_core_t *core, GstMCBuffer *mcbuffer, unsigned int *size) -{ - void *data = NULL; - uint64_t data_size = 0; - uint64_t codec_size = 0; - int ret = MC_ERROR_NONE; - - media_packet_get_buffer_size(mcbuffer->packet, &data_size); - media_packet_get_buffer_data_ptr(mcbuffer->packet, &data); - - switch (core->codec_id) { - case MEDIACODEC_H264: - codec_size = _mc_get_h264_codecdata_size(data, data_size); - break; - case MEDIACODEC_H263: - /* Not need codec data */ - codec_size = 0; - break; - case MEDIACODEC_MPEG4: - codec_size = _mc_check_mpeg4_out_bytestream(data, data_size, NULL, NULL); - break; - default: - LOGE("Current not support yet (0x%x) !", core->codec_id); - return MC_NOT_SUPPORTED; - break; - } - - if (codec_size < 0) { - LOGE("No valid codec data!"); - ret = MC_INVALID_IN_BUF; - } - - *size = codec_size; - - return ret; -} - int __mc_set_caps_codecdata(mc_gst_core_t *core, GstMCBuffer *mcbuffer, guint fixed_size) { int ret = MC_ERROR_NONE;