summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f275d87)
[Version] 0.1.24
[Profile] Mobile, Wearable, TV
[Issue Type] Fix coverity issues
Change-Id: I67cfb39f8904474b741e3a646274f71fb5fc8364
Name: capi-mediademuxer
Summary: A Media Demuxer library in Tizen Native API
Name: capi-mediademuxer
Summary: A Media Demuxer library in Tizen Native API
Release: 1
Group: Multimedia/API
License: Apache-2.0
Release: 1
Group: Multimedia/API
License: Apache-2.0
}
gst_caps_unref(caps);
tmp = head_track->head;
}
gst_caps_unref(caps);
tmp = head_track->head;
+
+ if (!tmp) {
+ MD_I("trak is NULL\n");
+ MEDIADEMUXER_FLEAVE();
+ return;
+ }
+
while (tmp->next)
tmp = tmp->next;
if (!tmp || !tmp->caps_string) {
while (tmp->next)
tmp = tmp->next;
if (!tmp || !tmp->caps_string) {
int bit = 0;
int channels = 0;
int id3_flag = 0;
int bit = 0;
int channels = 0;
int id3_flag = 0;
- const gchar *stream_format;
+ const gchar *stream_format = NULL;
media_format_mimetype_e mime_type = MEDIA_FORMAT_MAX;
struc = gst_caps_get_structure(head->caps, 0);
media_format_mimetype_e mime_type = MEDIA_FORMAT_MAX;
struc = gst_caps_get_structure(head->caps, 0);
goto ERROR;
stream_format = gst_structure_get_string(struc, "stream-format");
goto ERROR;
stream_format = gst_structure_get_string(struc, "stream-format");
- if (strncmp(stream_format, "adts", 4) == 0)
- media_format_set_audio_aac_type(format, 1);
- else
- media_format_set_audio_aac_type(format, 0);
+ if (stream_format) {
+ if (strncmp(stream_format, "adts", 4) == 0)
+ media_format_set_audio_aac_type(format, 1);
+ else
+ media_format_set_audio_aac_type(format, 0);
+ }
} else if (mpegversion == 1 || id3_flag) {
gst_structure_get_int(struc, "layer", &layer);
} else if (mpegversion == 1 || id3_flag) {
gst_structure_get_int(struc, "layer", &layer);