diff options
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtspdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c index d2f49a41fa..fd74b08c53 100644 --- a/libavformat/rtspdec.c +++ b/libavformat/rtspdec.c @@ -136,7 +136,7 @@ static int rtsp_read_header(AVFormatContext *s, rt->real_setup_cache = av_mallocz(2 * s->nb_streams * sizeof(*rt->real_setup_cache)); if (!rt->real_setup_cache) return AVERROR(ENOMEM); - rt->real_setup = rt->real_setup_cache + s->nb_streams * sizeof(*rt->real_setup); + rt->real_setup = rt->real_setup_cache + s->nb_streams; if (ap->initial_pause) { /* do not start immediately */ |