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 378 of file FFmpeg.h.

Constructor & Destructor Documentation

◆ FFmpegContext()

FFmpegContext::FFmpegContext ( )
inline

Definition at line 379 of file FFmpeg.h.

379 {}

◆ ~FFmpegContext()

FFmpegContext::~FFmpegContext ( )

Definition at line 296 of file FFmpeg.cpp.

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

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 383 of file FFmpeg.h.

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

◆ pb

AVIOContext* FFmpegContext::pb {}

Definition at line 382 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:383
FFmpegLibsInst
FFmpegLibs * FFmpegLibsInst()
Definition: FFmpeg.cpp:46
ufile_close
int ufile_close(AVIOContext *pb)
Definition: FFmpeg.cpp:198
FFmpegContext::pb
AVIOContext * pb
Definition: FFmpeg.h:382