summaryrefslogtreecommitdiff
path: root/libdvbmpeg/remux.c
diff options
context:
space:
mode:
authorschmirl <schmirl>2007-09-21 11:55:56 +0000
committerschmirl <schmirl>2007-09-21 11:55:56 +0000
commitd0385f5252ba5f5463028b848b7036413626cf42 (patch)
tree9deb7760e6bbade0851d64a3f948463d0006d898 /libdvbmpeg/remux.c
parent17ff4d32e8d779f68deb4ba838201ec3c8ab7edd (diff)
downloadvdr-plugin-streamdev-d0385f5252ba5f5463028b848b7036413626cf42.tar.gz
vdr-plugin-streamdev-d0385f5252ba5f5463028b848b7036413626cf42.tar.bz2
fixes for some new warnings from gcc 4.3.0
- array subscript is above array bounds (real bug - might overwrite other var) - deprecated conversion from string constant to 'char*' - suggest explicit braces to avoid ambiguous 'else' Thanks to Petri Hintukainen (#354) Modified Files: common.c libdvbmpeg/cpptools.cc libdvbmpeg/remux.c
Diffstat (limited to 'libdvbmpeg/remux.c')
-rw-r--r--libdvbmpeg/remux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdvbmpeg/remux.c b/libdvbmpeg/remux.c
index 6f8a44f..1d65525 100644
--- a/libdvbmpeg/remux.c
+++ b/libdvbmpeg/remux.c
@@ -489,7 +489,7 @@ int get_video_info(Remux *rem)
VideoInfo *vi = &rem->video_info;
while (found < 4 && ring_rest(vid_buffy)){
- uint8_t b[3];
+ uint8_t b[4];
vring_peek( rem, b, 4, 0);
if ( b[0] == 0x00 && b[1] == 0x00 && b[2] == 0x01