Merge commit '036f5c5420e4529f05fa5180f5fa28ca2c5c4065' into release/2.4

* commit '036f5c5420e4529f05fa5180f5fa28ca2c5c4065':
  rm: Use the correct codec_data_size signedness

Conflicts:
	libavformat/rm.h
	libavformat/rmdec.c

See: a6f730730b
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-01-18 00:24:57 +01:00
commit 365e0652f9
3 changed files with 6 additions and 6 deletions

View File

@ -132,7 +132,7 @@ static int
rdt_load_mdpr (PayloadContext *rdt, AVStream *st, int rule_nr) rdt_load_mdpr (PayloadContext *rdt, AVStream *st, int rule_nr)
{ {
AVIOContext pb; AVIOContext pb;
int size; unsigned int size;
uint32_t tag; uint32_t tag;
/** /**

View File

@ -50,7 +50,7 @@ extern AVInputFormat ff_rdt_demuxer;
*/ */
int ff_rm_read_mdpr_codecdata (AVFormatContext *s, AVIOContext *pb, int ff_rm_read_mdpr_codecdata (AVFormatContext *s, AVIOContext *pb,
AVStream *st, RMStream *rst, AVStream *st, RMStream *rst,
int codec_data_size, const uint8_t *mime); unsigned int codec_data_size, const uint8_t *mime);
/** /**
* Parse one rm-stream packet from the input bytestream. * Parse one rm-stream packet from the input bytestream.

View File

@ -303,16 +303,16 @@ static int rm_read_audio_stream_info(AVFormatContext *s, AVIOContext *pb,
return 0; return 0;
} }
int int ff_rm_read_mdpr_codecdata(AVFormatContext *s, AVIOContext *pb,
ff_rm_read_mdpr_codecdata (AVFormatContext *s, AVIOContext *pb, AVStream *st, RMStream *rst,
AVStream *st, RMStream *rst, int codec_data_size, const uint8_t *mime) unsigned int codec_data_size, const uint8_t *mime)
{ {
unsigned int v; unsigned int v;
int size; int size;
int64_t codec_pos; int64_t codec_pos;
int ret; int ret;
if (codec_data_size < 0) if (codec_data_size > INT_MAX)
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
avpriv_set_pts_info(st, 64, 1, 1000); avpriv_set_pts_info(st, 64, 1, 1000);