bool is_audio;
bool is_eos;
int arr_msg_len = 0;
+ char *codec_data = NULL;
+ unsigned int codec_data_size = 0;
LOGD("ENTER");
media_packet_get_pts(packet, &push_media.pts);
media_packet_get_format(packet, &format);
media_packet_get_flags(packet, &push_media.flags);
+ if (media_packet_get_codec_data(packet, (void **)&codec_data, &codec_data_size) == MEDIA_PACKET_ERROR_NONE) {
+ if (codec_data_size > 0 && codec_data_size <= sizeof(push_media.codec_data))
+ memcpy(push_media.codec_data, codec_data, codec_data_size);
+ }
+ push_media.codec_data_size = codec_data_size;
push_media.buf_type = PUSH_MEDIA_BUF_TYPE_RAW;
media_packet_is_video(packet, &is_video);