X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fimage.cc;h=1735bb38ad81433a9e482e3628b5a4c0175dde46;hp=71a3a5bccd9b174b5ffea94f7eecbac250265952;hb=422be0eece2bf6ee80db1d3c21553cd82efff789;hpb=a8a0dfd1b21de6c0facf965ab119833ff6f790bf diff --git a/src/lib/image.cc b/src/lib/image.cc index 71a3a5bcc..1735bb38a 100644 --- a/src/lib/image.cc +++ b/src/lib/image.cc @@ -83,17 +83,6 @@ Image::sample_size (int n) const ); } -int -Image::components () const -{ - AVPixFmtDescriptor const * d = av_pix_fmt_desc_get(_pixel_format); - if (!d) { - throw PixelFormatError ("components()", _pixel_format); - } - - return d->nb_components; -} - /** @return Number of planes */ int Image::planes () const @@ -759,6 +748,7 @@ Image::swap (Image & other) } std::swap (_aligned, other._aligned); + std::swap (_extra_pixels, other._extra_pixels); } /** Destroy a Image */