]> git.sesse.net Git - nageru/blobdiff - jpeg_frame_view.h
Fix crashes with 4:2:2 JPEGs.
[nageru] / jpeg_frame_view.h
index 478c4a672388fbb8c0673d1cba791b7fd10a3e31..4c7648c2807adfa275d27d4992c91f47bd63fba0 100644 (file)
@@ -15,6 +15,7 @@ struct Frame {
        std::unique_ptr<uint8_t[]> y, cb, cr;
        unsigned width, height;
        unsigned chroma_subsampling_x, chroma_subsampling_y;
+       unsigned pitch_y, pitch_chroma;
 };
 
 class JPEGFrameView : public QGLWidget {