Audacity  2.3.1
Public Member Functions | Public Attributes | List of all members
FFmpegContext Struct Reference

#include <FFmpeg.h>

Public Member Functions

 FFmpegContext ()
 
 ~FFmpegContext ()
 

Public Attributes

AVIOContext * pb
 
AVFormatContext * ic_ptr {}
 

Detailed Description

Definition at line 409 of file FFmpeg.h.

Constructor & Destructor Documentation

FFmpegContext::FFmpegContext ( )
inline

Definition at line 410 of file FFmpeg.h.

410 {}
FFmpegContext::~FFmpegContext ( )

Definition at line 289 of file FFmpeg.cpp.

References FFmpegLibsInst(), ic_ptr, pb, and ufile_close().

290 {
291  if (FFmpegLibsInst()->ValidLibsLoaded())
292  {
293  if (ic_ptr)
294  avformat_close_input(&ic_ptr);
295  av_log_set_callback(av_log_default_callback);
296  }
297 
298  if (pb) {
299  ufile_close(pb);
300  if (FFmpegLibsInst()->ValidLibsLoaded())
301  {
302  av_free(pb->buffer);
303  av_free(pb);
304  }
305  }
306 }
int ufile_close(AVIOContext *pb)
Definition: FFmpeg.cpp:196
AVFormatContext * ic_ptr
Definition: FFmpeg.h:414
FFmpegLibs * FFmpegLibsInst()
Definition: FFmpeg.cpp:45
AVIOContext * pb
Definition: FFmpeg.h:413

Member Data Documentation

AVFormatContext* FFmpegContext::ic_ptr {}

Definition at line 414 of file FFmpeg.h.

Referenced by FFmpegImportFileHandle::Init(), ufile_fopen_input(), and ~FFmpegContext().

AVIOContext* FFmpegContext::pb

Definition at line 413 of file FFmpeg.h.

Referenced by ~FFmpegContext().


The documentation for this struct was generated from the following files: