[vlc-commits] mp4: fix error code

Rémi Denis-Courmont git at videolan.org
Sun May 19 19:20:21 CEST 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun May 19 20:04:41 2019 +0300| [b4d2a2dd2d53b3bb4658d20eebf6f1e18d26cb2c] | committer: Rémi Denis-Courmont

mp4: fix error code

VLC_ENOVAR is for missing variable. EINVAL is VLC_EBADVAR.

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

 modules/demux/mp4/mp4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 5d4febeb51..9f4e9cc710 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -2536,7 +2536,7 @@ static int xTTS_CountEntries( demux_t *p_demux, uint32_t *pi_entry /* out */,
         if ( i_array_offset >= i_table_count )
         {
             msg_Err( p_demux, "invalid index counting total samples %u %u", i_array_offset,  i_table_count );
-            return VLC_ENOVAR;
+            return VLC_EBADVAR;
         }
 
         if ( i_index_samples_left )



More information about the vlc-commits mailing list