Mercurial > mplayer.hg
changeset 36798:e4eaa6407e24
demux_real: initialize variables and remove unused one.
author | reimar |
---|---|
date | Wed, 19 Feb 2014 23:01:11 +0000 |
parents | 43837615479b |
children | b24236587d70 |
files | libmpdemux/demux_real.c |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_real.c Wed Feb 19 23:01:10 2014 +0000 +++ b/libmpdemux/demux_real.c Wed Feb 19 23:01:11 2014 +0000 @@ -1313,11 +1313,10 @@ sh_audio_t *sh = new_sh_audio(demuxer, aid, NULL); char buf[128]; /* for codec name */ int frame_size; - int sub_packet_size; - int sub_packet_h; + int sub_packet_size = 0; + int sub_packet_h = 0; int version; - int flavor; - int coded_frame_size; + int coded_frame_size = 0; int codecdata_length; int i; char *buft; @@ -1381,7 +1380,7 @@ stream_skip(demuxer->stream, 2); /* version (4 or 5) */ hdr_size = stream_read_dword(demuxer->stream); // header size mp_msg(MSGT_DEMUX,MSGL_V,"header size: %d\n", hdr_size); - flavor = stream_read_word(demuxer->stream);/* codec flavor id */ + stream_skip(demuxer->stream, 2);/* codec flavor id */ coded_frame_size = stream_read_dword(demuxer->stream);/* needed by codec */ mp_msg(MSGT_DEMUX,MSGL_V,"coded_frame_size: %d\n", coded_frame_size); stream_skip(demuxer->stream, 4); // big number