mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
lavf: add an AVStream field for exporting stream-global side data
This commit is contained in:
parent
0e2c3ee9a3
commit
25b3258656
4 changed files with 34 additions and 2 deletions
|
|
@ -2595,7 +2595,7 @@ int av_read_pause(AVFormatContext *s)
|
|||
|
||||
void avformat_free_context(AVFormatContext *s)
|
||||
{
|
||||
int i;
|
||||
int i, j;
|
||||
AVStream *st;
|
||||
|
||||
av_opt_free(s);
|
||||
|
|
@ -2605,6 +2605,12 @@ void avformat_free_context(AVFormatContext *s)
|
|||
for (i = 0; i < s->nb_streams; i++) {
|
||||
/* free all data in a stream component */
|
||||
st = s->streams[i];
|
||||
|
||||
for (j = 0; j < st->nb_side_data; j++)
|
||||
av_freep(&st->side_data[j].data);
|
||||
av_freep(&st->side_data);
|
||||
st->nb_side_data = 0;
|
||||
|
||||
if (st->parser) {
|
||||
av_parser_close(st->parser);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue