[FFmpeg-cvslog] asfdec: make nb_sub to be unsigned int

Alexandra Hájková git at videolan.org
Sun Jul 19 11:52:56 CEST 2015


ffmpeg | branch: master | Alexandra Hájková <alexandra.khirnova at gmail.com> | Fri Jul 17 14:17:07 2015 +0200| [e61f39849c2e2b7f492c17b42058242ed2fa4d57] | committer: Anton Khirnov

asfdec: make nb_sub to be unsigned int

number of subpayloads should be always positive

Signed-off-by: Anton Khirnov <anton at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e61f39849c2e2b7f492c17b42058242ed2fa4d57
---

 libavformat/asfdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index 8b0d82a..6613ec6 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -134,7 +134,7 @@ typedef struct ASFContext {
 
     // packet state
     uint64_t sub_left;  // subpayloads left or not
-    int nb_sub; // number of subpayloads read so far from the current ASF packet
+    unsigned int nb_sub; // number of subpayloads read so far from the current ASF packet
     uint16_t mult_sub_len; // total length of subpayloads array inside multiple payload
     uint64_t nb_mult_left; // multiple payloads left
     int return_subpayload;



More information about the ffmpeg-cvslog mailing list