[vlc-commits] MP4: code cosmetics
Jean-Baptiste Kempf
git at videolan.org
Tue Apr 10 18:00:03 CEST 2012
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Apr 10 17:58:22 2012 +0200| [1dcc6e6f7934abb23a36d7b8e8aacf975773a482] | committer: Jean-Baptiste Kempf
MP4: code cosmetics
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1dcc6e6f7934abb23a36d7b8e8aacf975773a482
---
modules/demux/mp4/mp4.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index b13bc5f..8faba8e 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -2312,7 +2312,6 @@ static void MP4_TrackCreate( demux_t *p_demux, mp4_track_t *p_track,
MP4_Box_t *p_vmhd;
MP4_Box_t *p_smhd;
- unsigned int i;
char language[4];
/* hint track unsupported */
@@ -2338,6 +2337,7 @@ static void MP4_TrackCreate( demux_t *p_demux, mp4_track_t *p_track,
p_track->fmt.i_priority = -1;
p_track->i_track_ID = p_tkhd->data.p_tkhd->i_track_ID;
+
p_track->i_width = p_tkhd->data.p_tkhd->i_width / 65536;
p_track->i_height = p_tkhd->data.p_tkhd->i_height / 65536;
p_track->f_rotation = p_tkhd->data.p_tkhd->f_rotation;
@@ -2368,7 +2368,7 @@ static void MP4_TrackCreate( demux_t *p_demux, mp4_track_t *p_track,
}
else
{
- for( i = 0; i < 3; i++ )
+ for( unsigned i = 0; i < 3; i++ )
language[i] = p_mdhd->data.p_mdhd->i_language[i];
language[3] = '\0';
}
More information about the vlc-commits
mailing list