[vlc-commits] packetizer: iso_color_tables: fix return cast

Francois Cartegnie git at videolan.org
Tue Dec 18 18:14:39 CET 2018


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Oct 18 09:42:08 2018 +0200| [bdc4de5fe7161cdeaa76d7e77d54dd3c3f4a2907] | committer: Hugo Beauzée-Luyssen

packetizer: iso_color_tables: fix return cast

(cherry picked from commit 7c98f6baaded723ded091b79e4cc89a2105a68ae)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=bdc4de5fe7161cdeaa76d7e77d54dd3c3f4a2907
---

 modules/packetizer/iso_color_tables.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/packetizer/iso_color_tables.h b/modules/packetizer/iso_color_tables.h
index de9c116570..2f0ba3d578 100644
--- a/modules/packetizer/iso_color_tables.h
+++ b/modules/packetizer/iso_color_tables.h
@@ -138,7 +138,7 @@ static inline enum iso_23001_8_tc vlc_xfer_to_iso_23001_8_tc( video_transfer_fun
 {
     for(size_t i=1; i<ARRAY_SIZE(iso_23001_8_tc_to_vlc_xfer_table); i++)
         if(iso_23001_8_tc_to_vlc_xfer_table[i] == v)
-            return (enum iso_23001_8_cp) i;
+            return (enum iso_23001_8_tc) i;
     return ISO_23001_8_TC_UNSPECIFIED;
 }
 
@@ -191,7 +191,7 @@ static inline enum iso_23001_8_mc vlc_coeffs_to_iso_23001_8_mc( video_color_spac
 {
     for(size_t i=1; i<ARRAY_SIZE(iso_23001_8_mc_to_vlc_coeffs_table); i++)
         if(iso_23001_8_mc_to_vlc_coeffs_table[i] == v)
-            return (enum iso_23001_8_cp) i;
+            return (enum iso_23001_8_mc) i;
     return ISO_23001_8_MC_UNSPECIFIED;
 }
 



More information about the vlc-commits mailing list