X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fdemux%2Fnuv.c;h=bdc02a34010cf27b522686fcdc49f3a2ded7cba9;hb=b78ed59b346fbca13d4ad0bcacf2b701f6de093f;hp=4eaab88991557a8ebb4db45f09a1933777d43ca1;hpb=fe087a38282e93addb25fa9598393e40ea233b09;p=vlc diff --git a/modules/demux/nuv.c b/modules/demux/nuv.c index 4eaab88991..bdc02a3401 100644 --- a/modules/demux/nuv.c +++ b/modules/demux/nuv.c @@ -2,7 +2,7 @@ * nuv.c: ***************************************************************************** * Copyright (C) 2005 the VideoLAN team - * $Id: $ + * $Id$ * * Authors: Laurent Aimar * @@ -18,14 +18,14 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ /***************************************************************************** * Preamble *****************************************************************************/ #include -#include +#include /* TODO: * - complete support (add support for rtjpeg and raw) @@ -192,14 +192,14 @@ static int Open( vlc_object_t * p_this ) { demux_t *p_demux = (demux_t*)p_this; demux_sys_t *p_sys; - uint8_t *p_peek; + const uint8_t *p_peek; frame_header_t fh; vlc_bool_t b_extended; /* Check id */ if( stream_Peek( p_demux->s, &p_peek, 12 ) != 12 || - ( strncmp( p_peek, "MythTVVideo", 11 ) && - strncmp( p_peek, "NuppelVideo", 11 ) ) ) + ( strncmp( (char *)p_peek, "MythTVVideo", 11 ) && + strncmp( (char *)p_peek, "NuppelVideo", 11 ) ) ) return VLC_EGENERIC; p_sys = malloc( sizeof( demux_sys_t ) ); @@ -230,7 +230,7 @@ static int Open( vlc_object_t * p_this ) else { /* TODO handle rtjpeg */ - msg_Warn( p_demux, "unsuported 'D' frame (c=%c)", fh.i_compression ); + msg_Warn( p_demux, "unsupported 'D' frame (c=%c)", fh.i_compression ); if( stream_Read( p_demux->s, NULL, fh.i_length ) != fh.i_length ) goto error; }