mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 14:15:29 +01:00
Merge remote-tracking branch 'qatar/master'
* qatar/master:
asf: only set index_read if the index contained entries.
cabac: add overread protection to BRANCHLESS_GET_CABAC().
cabac: increment jump locations by one in callers of BRANCHLESS_GET_CABAC().
cabac: remove unused argument from BRANCHLESS_GET_CABAC_UPDATE().
cabac: use struct+offset instead of memory operand in BRANCHLESS_GET_CABAC().
h264: add overread protection to get_cabac_bypass_sign_x86().
h264: reindent get_cabac_bypass_sign_x86().
h264: use struct offsets in get_cabac_bypass_sign_x86().
h264: fix overreads in cabac reader.
wmall: fix seeking.
lagarith: fix buffer overreads.
dvdec: drop unnecessary dv_tablegen.h #include
build: fix doc generation errors in parallel builds
Replace memset(0) by zero initializations.
faandct: Remove FAAN_POSTSCALE define and related code.
dvenc: print allowed profiles if the video doesn't conform to any of them.
avcodec_encode_{audio,video}: only reallocate output packet when it has non-zero size.
FATE: add a test for vp8 with changing frame size.
fate: add kgv1 fate test.
oggdec: calculate correct timestamps in Ogg/FLAC
Conflicts:
libavcodec/4xm.c
libavcodec/cook.c
libavcodec/dvdata.c
libavcodec/dvdsubdec.c
libavcodec/lagarith.c
libavcodec/lagarithrac.c
libavcodec/utils.c
tests/fate/video.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -157,8 +157,7 @@ static void rtsp_parse_range_npt(const char *p, int64_t *start, int64_t *end)
|
||||
|
||||
static int get_sockaddr(const char *buf, struct sockaddr_storage *sock)
|
||||
{
|
||||
struct addrinfo hints, *ai = NULL;
|
||||
memset(&hints, 0, sizeof(hints));
|
||||
struct addrinfo hints = { 0 }, *ai = NULL;
|
||||
hints.ai_flags = AI_NUMERICHOST;
|
||||
if (getaddrinfo(buf, NULL, &hints, &ai))
|
||||
return -1;
|
||||
@@ -497,9 +496,8 @@ int ff_sdp_parse(AVFormatContext *s, const char *content)
|
||||
* The Vorbis FMTP line can be up to 16KB - see xiph_parse_sdp_line
|
||||
* in rtpdec_xiph.c. */
|
||||
char buf[16384], *q;
|
||||
SDPParseState sdp_parse_state, *s1 = &sdp_parse_state;
|
||||
SDPParseState sdp_parse_state = { { 0 } }, *s1 = &sdp_parse_state;
|
||||
|
||||
memset(s1, 0, sizeof(SDPParseState));
|
||||
p = content;
|
||||
for (;;) {
|
||||
p += strspn(p, SPACE_CHARS);
|
||||
@@ -1950,7 +1948,7 @@ static int rtp_read_header(AVFormatContext *s)
|
||||
int ret, port;
|
||||
URLContext* in = NULL;
|
||||
int payload_type;
|
||||
AVCodecContext codec;
|
||||
AVCodecContext codec = { 0 };
|
||||
struct sockaddr_storage addr;
|
||||
AVIOContext pb;
|
||||
socklen_t addrlen = sizeof(addr);
|
||||
@@ -1991,7 +1989,6 @@ static int rtp_read_header(AVFormatContext *s)
|
||||
ffurl_close(in);
|
||||
in = NULL;
|
||||
|
||||
memset(&codec, 0, sizeof(codec));
|
||||
if (ff_rtp_get_codec_info(&codec, payload_type)) {
|
||||
av_log(s, AV_LOG_ERROR, "Unable to receive RTP payload type %d "
|
||||
"without an SDP file describing it\n",
|
||||
|
||||
Reference in New Issue
Block a user