fixup! media_format: Add missing null checking for parameters 80/256280/1 accepted/tizen/unified/20210401.110031 submit/tizen/20210401.020017
authorSangchul Lee <sc11.lee@samsung.com>
Thu, 1 Apr 2021 01:40:00 +0000 (10:40 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Thu, 1 Apr 2021 01:41:14 +0000 (10:41 +0900)
Change-Id: I4b2467256e371125e44c7f0d5ab4ab7ee8073ba6
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
src/media_format.c

index 8ff427039809f55a34c0a4ca555da7de4e907f98..d15ab164f32436750be4a744de70d00aad96a973 100644 (file)
@@ -975,6 +975,7 @@ int media_format_channel_positions_from_mask(media_format_h fmt, uint64_t channe
 {
        MEDIA_FORMAT_INSTANCE_CHECK(fmt);
        MEDIA_FORMAT_NULL_ARG_CHECK(position);
+       MEDIA_FORMAT_NULL_ARG_CHECK(*position);
 
        media_format_s *fmt_handle;
        fmt_handle = (media_format_s *)fmt;