for(i=0;i<s->nb_streams;i++) {
AVStream *st = s->streams[i];
av_free(st->priv_data);
- av_free(st->codec->extradata);
av_free(st->codec->palctrl);
}
return 0;
AVStream *st = s->streams[i];
AVIStream *ast = st->priv_data;
av_free(ast);
- av_free(st->codec->extradata);
av_free(st->codec->palctrl);
}
av_free(track);
}
- for (n = 0; n < s->nb_streams; n++) {
- av_free(s->streams[n]->codec->extradata);
- }
-
memset(matroska, 0, sizeof(MatroskaDemuxContext));
return 0;
av_free(ast->index_entries);
av_free(ast);
}
- av_free(st->codec->extradata);
av_free(st->codec->palctrl);
}
NUTContext *nut = s->priv_data;
int i;
- for(i=0;i<s->nb_streams;i++) {
- av_freep(&s->streams[i]->codec->extradata);
- }
av_freep(&nut->stream);
return 0;
ogg_stream_clear(&context->os) ;
ogg_sync_clear(&context->oy) ;
- av_freep(&avfcontext->streams[0]->codec.extradata);
return 0 ;
}
for (i = 0; i < ogg->nstreams; i++){
av_free (ogg->streams[i].buf);
av_free (ogg->streams[i].private);
- av_freep (&s->streams[i]->codec->extradata);
}
av_free (ogg->streams);
return 0;
if(smk->frm_flags)
av_free(smk->frm_flags);
- for(i=0;i<s->nb_streams;i++) {
- AVStream *st = s->streams[i];
- if(st->codec->extradata)
- av_free(st->codec->extradata);
- }
return 0;
}
av_parser_close(st->parser);
}
av_free(st->index_entries);
+ av_free(st->codec->extradata);
av_free(st->codec);
av_free(st);
}