int channels = 0;
int rate = 0;
int bit = 0;
- void *codec_data = NULL;
- unsigned int codec_data_length = 0;
media_packet_h audbuf;
esplusplayer_audio_stream_info audio_info = {0, };
if (ret != MEDIADEMUXER_ERROR_NONE) {
g_print("Error (%d) return of (Audio) mediademuxer_read_sample()\n", ret);
} else {
+ void *codec_data = NULL;
+ unsigned int codec_data_length = 0;
+
g_test_h->streams[AUDIO_STREAM].pending_packet = audbuf;
if (media_packet_get_codec_data (audbuf, &codec_data, &codec_data_length) == MEDIA_PACKET_ERROR_NONE) {
g_print("Audio has codec data\n");
else
g_print(" => esplusplayer_set_audio_stream_info() success\n");
- if (codec_data)
- free(codec_data);
-
g_test_h->streams[AUDIO_STREAM].activate = true;
}
int width = 0;
int height = 0;
int framerate = 0;
- void *codec_data = NULL;
- unsigned int codec_data_length = 0;
media_packet_h vidbuf;
esplusplayer_video_stream_info video_info = {0, };
if (ret != MEDIADEMUXER_ERROR_NONE) {
g_print("Error (%d) return of (Video) mediademuxer_read_sample()\n", ret);
} else {
+ void *codec_data = NULL;
+ unsigned int codec_data_length = 0;
+
g_test_h->streams[VIDEO_STREAM].pending_packet = vidbuf;
if (media_packet_get_codec_data (vidbuf, &codec_data, &codec_data_length) == MEDIA_PACKET_ERROR_NONE) {
g_print("Video has codec data\n");
else
g_print(" => esplusplayer_set_video_stream_info() success\n");
- if (codec_data)
- free(codec_data);
-
g_test_h->streams[VIDEO_STREAM].activate = true;
}