mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-04-25 08:56:59 +08:00
Merge commit '7941159df6aad2d219e2a7184489be7a735dd944'
* commit '7941159df6aad2d219e2a7184489be7a735dd944': rtpdec/enc: Remove outdated/useless/misleading comments rtpdec: Improve some comments rtpdec: Remove unused context variables rtpdec: Limit writing to the buffer size svq1: Fix building with -DDEBUG svq1: return meaningful error codes. Conflicts: libavcodec/svq1dec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -531,7 +531,7 @@ static int rtp_parse_packet_internal(RTPDemuxContext *s, AVPacket *pkt,
|
||||
if (ret < 0)
|
||||
return AVERROR(EAGAIN);
|
||||
if (ret < len) {
|
||||
s->read_buf_size = len - ret;
|
||||
s->read_buf_size = FFMIN(len - ret, sizeof(s->buf));
|
||||
memcpy(s->buf, buf + ret, s->read_buf_size);
|
||||
s->read_buf_index = 0;
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user