aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/tee.c
diff options
context:
space:
mode:
authorJan Sebechlebsky <sebechlebskyjan@gmail.com>2016-05-03 16:21:20 +0300
committerMarton Balint <cus@passwd.hu>2016-05-07 17:24:15 +0200
commita3c877aca78f282a2848613cc144836e55144751 (patch)
treecbde8d57bffbb6b33034e2372908e571b751609b /libavformat/tee.c
parent215a2d76788feae6d43decb130bac03ef9adb7c5 (diff)
downloadffmpeg-a3c877aca78f282a2848613cc144836e55144751.tar.gz
avformat/tee: Fix TeeSlave.bsfs pointer array size
TeeSlave.bsfs is array of pointers to AVBitStreamFilterContext, so element size should be really size of a pointer, not size of TeeSlave structure. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/tee.c')
-rw-r--r--libavformat/tee.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/tee.c b/libavformat/tee.c
index 499ef33ad1..6d2ce53788 100644
--- a/libavformat/tee.c
+++ b/libavformat/tee.c
@@ -324,7 +324,7 @@ static int open_slave(AVFormatContext *avf, char *slave, TeeSlave *tee_slave)
}
tee_slave->header_written = 1;
- tee_slave->bsfs = av_calloc(avf2->nb_streams, sizeof(TeeSlave));
+ tee_slave->bsfs = av_calloc(avf2->nb_streams, sizeof(*tee_slave->bsfs));
if (!tee_slave->bsfs) {
ret = AVERROR(ENOMEM);
goto end;