diff --git a/src/mod/formats/mod_vlc/mod_vlc.c b/src/mod/formats/mod_vlc/mod_vlc.c index f59d528021..622eed629e 100644 --- a/src/mod/formats/mod_vlc/mod_vlc.c +++ b/src/mod/formats/mod_vlc/mod_vlc.c @@ -106,7 +106,6 @@ struct vlc_video_context { switch_frame_t *vid_frame; uint8_t video_packet[1500 + 12]; void *raw_yuyv_data; - void *raw_i420_data; switch_image_t *img; switch_time_t last_video_ts; switch_payload_t pt; @@ -132,33 +131,8 @@ void yuyv_to_i420(uint8_t *pixels, void *out_buffer, int src_width, int src_heig U = Y + src_width * src_height; V = U + (src_width * src_height>>2); - if (0) {//split - uint8_t *p, *q, *k; - p = pixels; - q = pixels; - k = pixels; - for (h = 0; h < src_height / 2; ++h) - { - for (w=0; wraw_i420_data = malloc(frame_size); - if (context->raw_i420_data == NULL) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "memory error\n"); - free(context->raw_yuyv_data); - return 0; - } - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "chroma: %s, width: %u, height: %u, pitches: %u, lines: %u\n", chroma, *width, *height, *pitches, *lines); return 1; @@ -459,7 +426,6 @@ void video_format_clean_callback(void *opaque) vlc_video_context_t *context = (vlc_video_context_t *)opaque; switch_safe_free(context->raw_yuyv_data); - switch_safe_free(context->raw_i420_data); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "cleanup\n"); }