avformat/utils: Set stream side-data size even without side-data

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
Andreas Rheinhardt 2020-05-22 00:08:00 +02:00
parent 72baae1395
commit 38490cbeb3
1 changed files with 2 additions and 0 deletions

View File

@ -5507,6 +5507,8 @@ uint8_t *av_stream_get_side_data(const AVStream *st,
return st->side_data[i].data;
}
}
if (size)
*size = 0;
return NULL;
}