FFmpeg
Functions | Variables
lrcenc.c File Reference
#include <inttypes.h>
#include <stdint.h>
#include <string.h>
#include "avformat.h"
#include "internal.h"
#include "lrc.h"
#include "metadata.h"
#include "mux.h"
#include "version.h"
#include "libavutil/dict.h"
#include "libavutil/log.h"
#include "libavutil/macros.h"

Go to the source code of this file.

Functions

static int lrc_write_header (AVFormatContext *s)
 
static int lrc_write_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFOutputFormat ff_lrc_muxer
 

Function Documentation

◆ lrc_write_header()

static int lrc_write_header ( AVFormatContext s)
static

Definition at line 36 of file lrcenc.c.

◆ lrc_write_packet()

static int lrc_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 78 of file lrcenc.c.

Variable Documentation

◆ ff_lrc_muxer

const FFOutputFormat ff_lrc_muxer
Initial value:
= {
.p.name = "lrc",
.p.long_name = NULL_IF_CONFIG_SMALL("LRC lyrics"),
.p.extensions = "lrc",
.p.video_codec = AV_CODEC_ID_NONE,
.p.audio_codec = AV_CODEC_ID_NONE,
.p.subtitle_codec = AV_CODEC_ID_SUBRIP,
.flags_internal = FF_OFMT_FLAG_MAX_ONE_OF_EACH,
.priv_data_size = 0,
.write_header = lrc_write_header,
.write_packet = lrc_write_packet,
}

Definition at line 122 of file lrcenc.c.

AVFMT_VARIABLE_FPS
#define AVFMT_VARIABLE_FPS
Format allows variable fps.
Definition: avformat.h:482
lrc_write_packet
static int lrc_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: lrcenc.c:78
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:106
AVFMT_GLOBALHEADER
#define AVFMT_GLOBALHEADER
Format wants global header.
Definition: avformat.h:478
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
AV_CODEC_ID_SUBRIP
@ AV_CODEC_ID_SUBRIP
Definition: codec_id.h:566
FF_OFMT_FLAG_MAX_ONE_OF_EACH
#define FF_OFMT_FLAG_MAX_ONE_OF_EACH
If this flag is set, it indicates that for each codec type whose corresponding default codec (i....
Definition: mux.h:50
AVFMT_TS_NEGATIVE
#define AVFMT_TS_NEGATIVE
Format allows muxing negative timestamps.
Definition: avformat.h:494
AVFMT_TS_NONSTRICT
#define AVFMT_TS_NONSTRICT
Format does not require strictly increasing timestamps, but they must still be monotonic.
Definition: avformat.h:491
lrc_write_header
static int lrc_write_header(AVFormatContext *s)
Definition: lrcenc.c:36