diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-07 17:35:56 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-07 17:35:56 +0000 |
commit | 1dbba251922baea90369abe9fdf239e693afb813 (patch) | |
tree | d6b4fd951ac3893b0149956d12b4c9afa2c01468 /third_party | |
parent | 8931c41ae5392aab1c70f9c9b4e4c64061fdd9af (diff) | |
download | chromium_src-1dbba251922baea90369abe9fdf239e693afb813.zip chromium_src-1dbba251922baea90369abe9fdf239e693afb813.tar.gz chromium_src-1dbba251922baea90369abe9fdf239e693afb813.tar.bz2 |
Cleanup resources allocated by FFmpeg to avoid memory and threads leaks
Calls avcodec_free and avcodec_thread_free appropriately.
Review URL: http://codereview.chromium.org/151192
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20039 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/ffmpeg/avcodec-52.sigs | 1 | ||||
-rw-r--r-- | third_party/ffmpeg/avformat-52.sigs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/third_party/ffmpeg/avcodec-52.sigs b/third_party/ffmpeg/avcodec-52.sigs index 27b8ef9..0e4daf2 100644 --- a/third_party/ffmpeg/avcodec-52.sigs +++ b/third_party/ffmpeg/avcodec-52.sigs @@ -11,6 +11,7 @@ int av_new_packet(AVPacket *pkt, int size); int avcodec_decode_audio3(AVCodecContext *avctx, int16_t *samples, int *frame_size_ptr, AVPacket *avpkt); int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, AVPacket *avpkt); int avcodec_open(AVCodecContext *avctx, AVCodec *codec); +int avcodec_close(AVCodecContext *avctx); int avcodec_thread_init(AVCodecContext *s, int thread_count); void av_free_packet(AVPacket *pkt); void av_init_packet(AVPacket *pkt); diff --git a/third_party/ffmpeg/avformat-52.sigs b/third_party/ffmpeg/avformat-52.sigs index 5f7b193..a4b643e 100644 --- a/third_party/ffmpeg/avformat-52.sigs +++ b/third_party/ffmpeg/avformat-52.sigs @@ -6,6 +6,7 @@ int av_find_stream_info(AVFormatContext *ic); int av_open_input_file(AVFormatContext **ic_ptr, const char *filename, AVInputFormat *fmt, int buf_size, AVFormatParameters *ap); +void av_close_input_file(AVFormatContext *s); int av_read_frame(AVFormatContext *s, AVPacket *pkt); int av_register_protocol(URLProtocol *protocol); int av_seek_frame(AVFormatContext *s, int stream_index, int64_t timestamp, int flags); |