]> git.sesse.net Git - vlc/blobdiff - modules/demux/vc1.c
Don't print a message a malloc failed.
[vlc] / modules / demux / vc1.c
index 750c8f47f7724bc79418de3a362cce3c3791de2a..f6c7625067a37e692f8c2634a64e9c5bc8198114 100644 (file)
@@ -29,7 +29,8 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
+#include <vlc_plugin.h>
 #include <vlc_demux.h>
 #include "vlc_codec.h"
 
@@ -46,7 +47,7 @@ vlc_module_begin();
     set_shortname( "VC-1");
     set_category( CAT_INPUT );
     set_subcategory( SUBCAT_INPUT_DEMUX );
-    set_description( _("VC1 video demuxer" ) );
+    set_description( N_("VC1 video demuxer" ) );
     set_capability( "demux", 0 );
     add_float( "vc1-fps", 25.0, NULL, FPS_TEXT, FPS_LONGTEXT, true );
     set_callbacks( Open, Close );
@@ -166,13 +167,13 @@ static int Demux( demux_t *p_demux)
 
             if( p_sys->p_packetizer->fmt_out.video.i_frame_rate > 0 &&
                 p_sys->p_packetizer->fmt_out.video.i_frame_rate_base > 0 )
-                p_sys->i_dts += I64C(1000000) *
+                p_sys->i_dts += INT64_C(1000000) *
                     p_sys->p_packetizer->fmt_out.video.i_frame_rate_base /
                     p_sys->p_packetizer->fmt_out.video.i_frame_rate;
             else if( p_sys->f_fps > 0.001 )
                 p_sys->i_dts += (int64_t)((double)1000000.0 / p_sys->f_fps);
             else
-                p_sys->i_dts += I64C(1000000) / 25;
+                p_sys->i_dts += INT64_C(1000000) / 25;
         }
     }
     return 1;