diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-02-12 04:17:55 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-02-12 04:17:55 +0200 |
commit | 1e869638280f962fb80f372d152234f21246c2af (patch) | |
tree | 64657f88e7902aa000f44f40be4f8e575f58c8de /libmpdemux/demux_mov.c | |
parent | 9790f4e6e72cdc8093be966d3d6e007c8f44a035 (diff) | |
parent | 379b176f25905f273a368336c3f5f287eeea51a2 (diff) | |
download | mpv-1e869638280f962fb80f372d152234f21246c2af.tar.bz2 mpv-1e869638280f962fb80f372d152234f21246c2af.tar.xz |
Merge svn changes up to r28537
Diffstat (limited to 'libmpdemux/demux_mov.c')
-rw-r--r-- | libmpdemux/demux_mov.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/libmpdemux/demux_mov.c b/libmpdemux/demux_mov.c index a17d0966bd..fb271e1e49 100644 --- a/libmpdemux/demux_mov.c +++ b/libmpdemux/demux_mov.c @@ -41,6 +41,7 @@ #include "stheader.h" #include "libmpcodecs/img_format.h" +#include "libavutil/common.h" #include "libavutil/intreadwrite.h" #include "libvo/sub.h" @@ -48,7 +49,7 @@ #include "qtpalette.h" #include "parse_mp4.h" // .MP4 specific stuff -#ifdef CONFIG_ZLIB +#if CONFIG_ZLIB #include <zlib.h> #endif @@ -434,8 +435,8 @@ static int mov_check_file(demuxer_t* demuxer){ case MOV_FOURCC('r','m','d','a'): continue; case MOV_FOURCC('r','d','r','f'): { - int tmp=stream_read_dword(demuxer->stream); - int type=stream_read_dword_le(demuxer->stream); + av_unused int tmp=stream_read_dword(demuxer->stream); + av_unused int type=stream_read_dword_le(demuxer->stream); int slen=stream_read_dword(demuxer->stream); //char* s=malloc(slen+1); //stream_read(demuxer->stream,s,slen); @@ -455,7 +456,7 @@ static int mov_check_file(demuxer_t* demuxer){ len-=12+slen;i-=12+slen; break; } case MOV_FOURCC('r','m','d','r'): { - int flags=stream_read_dword(demuxer->stream); + av_unused int flags=stream_read_dword(demuxer->stream); int rate=stream_read_dword(demuxer->stream); mp_msg(MSGT_DEMUX,MSGL_V," min. data rate: %d bits/sec\n",rate); len-=8; i-=8; break; @@ -1395,7 +1396,7 @@ static void lschunks(demuxer_t* demuxer,int level,off_t endpos,mov_track_t* trak trak=NULL; break; } -#ifndef CONFIG_ZLIB +#if !CONFIG_ZLIB case MOV_FOURCC('c','m','o','v'): { mp_msg(MSGT_DEMUX,MSGL_ERR,MSGTR_MOVcomprhdr); return; @@ -1658,12 +1659,12 @@ static int lschunks_intrak(demuxer_t* demuxer, int level, unsigned int id, break; } case MOV_FOURCC('h','d','l','r'): { - unsigned int tmp = stream_read_dword(demuxer->stream); + av_unused unsigned int tmp = stream_read_dword(demuxer->stream); unsigned int type = stream_read_dword_le(demuxer->stream); unsigned int subtype = stream_read_dword_le(demuxer->stream); unsigned int manufact = stream_read_dword_le(demuxer->stream); - unsigned int comp_flags = stream_read_dword(demuxer->stream); - unsigned int comp_mask = stream_read_dword(demuxer->stream); + av_unused unsigned int comp_flags = stream_read_dword(demuxer->stream); + av_unused unsigned int comp_mask = stream_read_dword(demuxer->stream); int len = stream_read_char(demuxer->stream); char* str = malloc(len + 1); stream_read(demuxer->stream, str, len); @@ -1743,7 +1744,7 @@ static int lschunks_intrak(demuxer_t* demuxer, int level, unsigned int id, break; } case MOV_FOURCC('s','t','t','s'): { - int temp = stream_read_dword(demuxer->stream); + av_unused int temp = stream_read_dword(demuxer->stream); int len = stream_read_dword(demuxer->stream); int i; unsigned int pts = 0; @@ -1802,7 +1803,7 @@ static int lschunks_intrak(demuxer_t* demuxer, int level, unsigned int id, break; } case MOV_FOURCC('s','t','c','o'): { - int temp = stream_read_dword(demuxer->stream); + av_unused int temp = stream_read_dword(demuxer->stream); int len = stream_read_dword(demuxer->stream); int i; mp_msg(MSGT_DEMUX, MSGL_V, @@ -1819,7 +1820,7 @@ static int lschunks_intrak(demuxer_t* demuxer, int level, unsigned int id, break; } case MOV_FOURCC('c','o','6','4'): { - int temp = stream_read_dword(demuxer->stream); + av_unused int temp = stream_read_dword(demuxer->stream); int len = stream_read_dword(demuxer->stream); int i; mp_msg(MSGT_DEMUX, MSGL_V, @@ -2027,7 +2028,7 @@ static demuxer_t* mov_read_header(demuxer_t* demuxer){ char2int(trak->stdata,12)==MOV_FOURCC('z','l','i','b') ){ int newlen=stream_read_dword(demuxer->stream); -#ifdef CONFIG_ZLIB +#if CONFIG_ZLIB // unzip: z_stream zstrm; int zret; @@ -2192,7 +2193,7 @@ if(trak->pos==0 && trak->stream_header_len>0){ if (samplenr < 0) vo_sub = NULL; else if (samplenr != priv->current_sub) { - sh_sub_t *sh = demuxer->sub->sh; + av_unused sh_sub_t *sh = demuxer->sub->sh; off_t pos = trak->samples[samplenr].pos; int len = trak->samples[samplenr].size; double subpts = (double)trak->samples[samplenr].pts / (double)trak->timescale; |