move av_find_stream_info() info struct to AVStream to avoid messy (re)allocation

Originally committed as revision 25418 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Aurelien Jacobs
2010-10-08 22:01:19 +00:00
parent f47d172f13
commit fd0368e7ca
3 changed files with 48 additions and 54 deletions

View File

@@ -600,6 +600,7 @@ static int ffmpeg_exit(int ret)
for(j=0;j<s->nb_streams;j++) {
av_metadata_free(&s->streams[j]->metadata);
av_free(s->streams[j]->codec);
av_free(s->streams[j]->info);
av_free(s->streams[j]);
}
for(j=0;j<s->nb_programs;j++) {