Browse Source

* sampler.c : imdb_sample

master
Alex 'AdUser' Z 10 years ago
parent
commit
f7d7d53c63
  1. 2
      src/sampler.c

2
src/sampler.c

@ -81,7 +81,7 @@ imdb_sample(imdb_rec_t * const rec,
if (status == MagickPass) { if (status == MagickPass) {
memset(rec, 0x0, sizeof(imdb_rec_t)); memset(rec, 0x0, sizeof(imdb_rec_t));
rec->data[REC_OFF_RU] = 1; rec->data[REC_OFF_RU] = 0xFF;
*((uint16_t *) &rec->data[REC_OFF_IW]) = (uint16_t) w; *((uint16_t *) &rec->data[REC_OFF_IW]) = (uint16_t) w;
*((uint16_t *) &rec->data[REC_OFF_IH]) = (uint16_t) h; *((uint16_t *) &rec->data[REC_OFF_IH]) = (uint16_t) h;
memcpy(&rec->data[REC_OFF_BM], buf, 32); memcpy(&rec->data[REC_OFF_BM], buf, 32);

Loading…
Cancel
Save