for (int i = 0; i < yuv->components(); ++i) {
int const line_size = yuv->line_size()[i];
int const half_line_size = line_size / 2;
+ int const stride = yuv->stride()[i];
uint8_t* p = _image->data()[i];
uint8_t* q = yuv->data()[i];
for (int j = 0; j < yuv->lines (i); ++j) {
memcpy (p + half_line_size, q + half_line_size, half_line_size);
- p += line_size;
- q += line_size;
+ p += stride;
+ q += stride;
}
}
void
ABTranscoder::go ()
{
- _encoder->process_begin (_da->audio_channel_layout(), _da->audio_sample_format());
+ _encoder->process_begin (_da->audio_channel_layout());
_da->process_begin ();
_db->process_begin ();