comparison libvo/vo_bl.c @ 23458:973e53dc7df5

Do not use fast_memcpy for small size copy, esp. when the size is constant
author reimar
date Tue, 05 Jun 2007 15:09:49 +0000
parents a124f3abc1ec
children 3aee342be929
comparison
equal deleted inserted replaced
23457:a124f3abc1ec 23458:973e53dc7df5
172 172
173 h->fd = -1; 173 h->fd = -1;
174 addr.sin_family = AF_INET; 174 addr.sin_family = AF_INET;
175 addr.sin_port = htons(h->port); 175 addr.sin_port = htons(h->port);
176 176
177 fast_memcpy(&addr.sin_addr.s_addr, dest->h_addr_list[0], dest->h_length); 177 memcpy(&addr.sin_addr.s_addr, dest->h_addr_list[0], dest->h_length);
178 178
179 h->fd = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP); 179 h->fd = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP);
180 if (h->fd < 0) { 180 if (h->fd < 0) {
181 mp_msg(MSGT_VO, MSGL_ERR, 181 mp_msg(MSGT_VO, MSGL_ERR,
182 "couldn't create socket for %s\n", h->name); 182 "couldn't create socket for %s\n", h->name);