summaryrefslogtreecommitdiff
path: root/libavformat/rmdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-06 00:41:00 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-06 00:48:47 +0100
commitef2f9073dda3a1ce73f44d444bc27fae5707f396 (patch)
tree3420974b6a250d77814242fa2cc53ce579fc08c3 /libavformat/rmdec.c
parenta0d0799ea2a79c6b598541248fe24083265cf336 (diff)
parent1c77ead1fb14d64e6798fc5e32af04abcb3cebb4 (diff)
downloadffmpeg-ef2f9073dda3a1ce73f44d444bc27fae5707f396.tar.gz
Merge commit '1c77ead1fb14d64e6798fc5e32af04abcb3cebb4'
* commit '1c77ead1fb14d64e6798fc5e32af04abcb3cebb4': rm: Use the correct codec_data_size signedness Conflicts: libavformat/rm.h libavformat/rmdec.c See: a6f730730b82645a9d31aad0968487cb77d6946c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rmdec.c')
-rw-r--r--libavformat/rmdec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index 19bd7a7a0b..d6fc59f592 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -303,16 +303,16 @@ 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, const uint8_t *mime)
+int ff_rm_read_mdpr_codecdata(AVFormatContext *s, AVIOContext *pb,
+ AVStream *st, RMStream *rst,
+ unsigned int codec_data_size, const uint8_t *mime)
{
unsigned int v;
int size;
int64_t codec_pos;
int ret;
- if (codec_data_size < 0)
+ if (codec_data_size > INT_MAX)
return AVERROR_INVALIDDATA;
avpriv_set_pts_info(st, 64, 1, 1000);