We don't need to request the sizeimage or num_planes
in try_fmt.
Signed-off-by: ayaka <ayaka@soulik.info>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
                        mfc_err("failed to try output format\n");
                        return -EINVAL;
                }
-               if (pix_fmt_mp->plane_fmt[0].sizeimage == 0) {
-                       mfc_err("must be set encoding output size\n");
-                       return -EINVAL;
-               }
                if ((dev->variant->version_bit & fmt->versions) == 0) {
                        mfc_err("Unsupported format by this MFC version.\n");
                        return -EINVAL;
                        mfc_err("failed to try output format\n");
                        return -EINVAL;
                }
-
-               if (fmt->num_planes != pix_fmt_mp->num_planes) {
-                       mfc_err("failed to try output format\n");
-                       return -EINVAL;
-               }
                if ((dev->variant->version_bit & fmt->versions) == 0) {
                        mfc_err("Unsupported format by this MFC version.\n");
                        return -EINVAL;