Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(794)

Unified Diff: patched-ffmpeg-mt/libavformat/nutdec.c

Issue 789004: ffmpeg roll of source to mar 9 version... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: patched-ffmpeg-mt/libavformat/nutdec.c
===================================================================
--- patched-ffmpeg-mt/libavformat/nutdec.c (revision 41250)
+++ patched-ffmpeg-mt/libavformat/nutdec.c (working copy)
@@ -389,8 +389,8 @@
static int decode_info_header(NUTContext *nut){
AVFormatContext *s= nut->avf;
ByteIOContext *bc = s->pb;
- uint64_t tmp;
- unsigned int stream_id_plus1, chapter_start, chapter_len, count;
+ uint64_t tmp, chapter_start, chapter_len;
+ unsigned int stream_id_plus1, count;
int chapter_id, i;
int64_t value, end;
char name[256], str_value[1024], type_str[256];
@@ -897,9 +897,13 @@
static int nut_read_close(AVFormatContext *s)
{
NUTContext *nut = s->priv_data;
+ int i;
av_freep(&nut->time_base);
av_freep(&nut->stream);
+ ff_nut_free_sp(nut);
+ for(i = 1; i < nut->header_count; i++)
+ av_freep(&nut->header[i]);
return 0;
}
@@ -915,5 +919,6 @@
nut_read_close,
read_seek,
.extensions = "nut",
+ .metadata_conv = ff_nut_metadata_conv,
};
#endif

Powered by Google App Engine
This is Rietveld 408576698