summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;