mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
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>
This commit is contained in:
parent
215a2d7678
commit
a3c877aca7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user