Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CMusicCodecInfoFFmpeg Class Reference

#include <MusicCodecInfoFFmpeg.h>

Static Public Member Functions

static bool GetMusicCodecInfo (AVFormatContext *fctx, musicCodecInfo &codec_info)
 Fill codec_info from a context the caller already opened.
 
static bool GetMusicCodecInfo (const std::string &strFileName, musicCodecInfo &codec_info)
 Convenience overload for a caller with no context of its own; opens the file itself.
 

Member Function Documentation

◆ GetMusicCodecInfo() [1/2]

bool CMusicCodecInfoFFmpeg::GetMusicCodecInfo ( AVFormatContext * fctx,
musicCodecInfo & codec_info )
static

Fill codec_info from a context the caller already opened.

Parameters
fctxA context on which avformat_find_stream_info() has been called.
codec_infoFilled from the default audio stream, or the first one.
Returns
Whether an audio stream was found.

◆ GetMusicCodecInfo() [2/2]

bool CMusicCodecInfoFFmpeg::GetMusicCodecInfo ( const std::string & strFileName,
musicCodecInfo & codec_info )
static

Convenience overload for a caller with no context of its own; opens the file itself.


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