[vlc-commits] codec: atsc a65: convert latin-1 to utf8

Francois Cartegnie git at videolan.org
Wed Nov 22 13:28:24 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Nov 22 13:15:31 2017 +0100| [a51c896c71689ca98a2264784f9e63b19e36e0b4] | committer: Francois Cartegnie

codec: atsc a65: convert latin-1 to utf8

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

 modules/codec/atsc_a65.c | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/modules/codec/atsc_a65.c b/modules/codec/atsc_a65.c
index 70cfe835eb..6c63cba949 100644
--- a/modules/codec/atsc_a65.c
+++ b/modules/codec/atsc_a65.c
@@ -132,20 +132,7 @@ static bool convert_encoding_set( atsc_a65_handle_t *p_handle,
             return false;
     }
 
-    if( i_mode == ATSC_A65_MODE_UNICODE_RANGE_START ) /* Latin 1 */
-    {
-        char *psz_realloc = realloc( psz_dest, i_mergmin1 + i_src + 1 );
-        if( psz_realloc )
-        {
-            psz_realloc[i_mergmin1 + i_src] = 0;
-            memcpy( &psz_realloc[i_mergmin1], p_src, i_src );
-            psz_dest = psz_realloc;
-            i_mergmin1 += i_src;
-        }
-        else return false;
-    }
-    else if( i_mode > ATSC_A65_MODE_UNICODE_RANGE_START &&  /* 8 range prefix + 8 */
-             i_mode <= ATSC_A65_MODE_UNICODE_RANGE_END )
+    if( i_mode <= ATSC_A65_MODE_UNICODE_RANGE_END ) /* 8 range prefix + 8 */
     {
         if( !p_handle->iconv_u16be )
         {



More information about the vlc-commits mailing list