Audacity  3.0.3
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 380 of file FFmpeg.h.

Constructor & Destructor Documentation

◆ FFmpegContext()

FFmpegContext::FFmpegContext ( )
inline

Definition at line 381 of file FFmpeg.h.

381 {}

◆ ~FFmpegContext()

FFmpegContext::~FFmpegContext ( )

Definition at line 297 of file FFmpeg.cpp.

298 {
299  if (FFmpegLibsInst()->ValidLibsLoaded())
300  {
301  if (ic_ptr)
302  avformat_close_input(&ic_ptr);
303  av_log_set_callback(av_log_default_callback);
304  }
305 
306  if (pb) {
307  ufile_close(pb);
308  if (FFmpegLibsInst()->ValidLibsLoaded())
309  {
310  av_free(pb->buffer);
311  av_free(pb);
312  }
313  }
314 }

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

Here is the call graph for this function:

Member Data Documentation

◆ ic_ptr

AVFormatContext* FFmpegContext::ic_ptr {}

Definition at line 385 of file FFmpeg.h.

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

◆ pb

AVIOContext* FFmpegContext::pb {}

Definition at line 384 of file FFmpeg.h.

Referenced by ~FFmpegContext().


The documentation for this struct was generated from the following files:
FFmpegContext::ic_ptr
AVFormatContext * ic_ptr
Definition: FFmpeg.h:385
FFmpegLibsInst
FFmpegLibs * FFmpegLibsInst()
Definition: FFmpeg.cpp:47
ufile_close
int ufile_close(AVIOContext *pb)
Definition: FFmpeg.cpp:199
FFmpegContext::pb
AVIOContext * pb
Definition: FFmpeg.h:384