rm: Use the correct codec_data_size signedness

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>
This commit is contained in:
Luca Barbato 2014-12-04 12:00:01 +01:00
parent da35008c31
commit 036f5c5420
3 changed files with 5 additions and 5 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); unsigned int codec_data_size);
/** /**
* Parse one rm-stream packet from the input bytestream. * Parse one rm-stream packet from the input bytestream.

View File

@ -282,9 +282,9 @@ 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) unsigned int codec_data_size)
{ {
unsigned int v; unsigned int v;
int size; int size;