mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
Merge commit '1c77ead1fb'
* commit '1c77ead1fb': rm: Use the correct codec_data_size signedness Conflicts: libavformat/rm.h libavformat/rmdec.c See:a6f730730bMerged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
ef2f9073dd
3 changed files with 6 additions and 6 deletions
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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, const uint8_t *mime);
|
||||
unsigned int codec_data_size, const uint8_t *mime);
|
||||
|
||||
/**
|
||||
* Parse one rm-stream packet from the input bytestream.
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue