rm: Use the correct codec_data_size signedness
authorLuca Barbato <lu_zero@gentoo.org>
Thu, 4 Dec 2014 11:00:01 +0000 (12:00 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 12 Jan 2015 22:18:01 +0000 (23:18 +0100)
The function takes a size and not an offset.

CC: libav-stable@libav.org
Sample-Id: rm_deadlock.rm

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/rdt.c
libavformat/rm.h
libavformat/rmdec.c

index 304f4cf..cc30694 100644 (file)
@@ -132,7 +132,7 @@ static int
 rdt_load_mdpr (PayloadContext *rdt, AVStream *st, int rule_nr)
 {
     AVIOContext pb;
-    int size;
+    unsigned int size;
     uint32_t tag;
 
     /**
index a06ea01..3aa1773 100644 (file)
@@ -50,7 +50,7 @@ extern AVInputFormat ff_rdt_demuxer;
  */
 int ff_rm_read_mdpr_codecdata (AVFormatContext *s, AVIOContext *pb,
                                AVStream *st, RMStream *rst,
-                               int codec_data_size);
+                               unsigned int codec_data_size);
 
 /**
  * Parse one rm-stream packet from the input bytestream.
index 79a0756..848d031 100644 (file)
@@ -282,9 +282,9 @@ static int rm_read_audio_stream_info(AVFormatContext *s, AVIOContext *pb,
     return 0;
 }
 
-int
-ff_rm_read_mdpr_codecdata (AVFormatContext *s, AVIOContext *pb,
-                           AVStream *st, RMStream *rst, int codec_data_size)
+int ff_rm_read_mdpr_codecdata(AVFormatContext *s, AVIOContext *pb,
+                              AVStream *st, RMStream *rst,
+                              unsigned int codec_data_size)
 {
     unsigned int v;
     int size;