Tidy up test film naming.
[dcpomatic.git] / src / lib / ab_transcoder.cc
index a32d82c54bef9625c20c6383c35ec021d2cf9615..08938a2827e822dceecb7fdbad4420207d6a4f6c 100644 (file)
@@ -80,14 +80,15 @@ ABTranscoder::process_video (shared_ptr<Image> yuv, int frame, shared_ptr<Subtit
                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;
                        }
                }
                        
@@ -103,7 +104,7 @@ ABTranscoder::process_video (shared_ptr<Image> yuv, int frame, shared_ptr<Subtit
 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 ();