projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git]
/
src
/
third_party
/
ffmpeg
/
libavformat
/
rtspdec.c
diff --git
a/src/third_party/ffmpeg/libavformat/rtspdec.c
b/src/third_party/ffmpeg/libavformat/rtspdec.c
index
af20465
..
51c80c6
100644
(file)
--- a/
src/third_party/ffmpeg/libavformat/rtspdec.c
+++ b/
src/third_party/ffmpeg/libavformat/rtspdec.c
@@
-696,7
+696,7
@@
static int rtsp_read_header(AVFormatContext *s)
return ret;
rt->real_setup_cache = !s->nb_streams ? NULL :
return ret;
rt->real_setup_cache = !s->nb_streams ? NULL :
- av_mallocz
(2 * s->nb_streams
* sizeof(*rt->real_setup_cache));
+ av_mallocz
_array(s->nb_streams, 2
* sizeof(*rt->real_setup_cache));
if (!rt->real_setup_cache && s->nb_streams)
return AVERROR(ENOMEM);
rt->real_setup = rt->real_setup_cache + s->nb_streams;
if (!rt->real_setup_cache && s->nb_streams)
return AVERROR(ENOMEM);
rt->real_setup = rt->real_setup_cache + s->nb_streams;