FFmpeg
Functions | Variables
microdvdenc.c File Reference
#include <inttypes.h>
#include "avformat.h"
#include "internal.h"
#include "mux.h"

Go to the source code of this file.

Functions

static int microdvd_write_header (struct AVFormatContext *s)
 
static int microdvd_write_packet (AVFormatContext *avf, AVPacket *pkt)
 

Variables

const FFOutputFormat ff_microdvd_muxer
 

Function Documentation

◆ microdvd_write_header()

static int microdvd_write_header ( struct AVFormatContext s)
static

Definition at line 27 of file microdvdenc.c.

◆ microdvd_write_packet()

static int microdvd_write_packet ( AVFormatContext avf,
AVPacket pkt 
)
static

Definition at line 47 of file microdvdenc.c.

Variable Documentation

◆ ff_microdvd_muxer

const FFOutputFormat ff_microdvd_muxer
Initial value:
= {
.p.name = "microdvd",
.p.long_name = NULL_IF_CONFIG_SMALL("MicroDVD subtitle format"),
.p.mime_type = "text/x-microdvd",
.p.extensions = "sub",
.p.flags = AVFMT_NOTIMESTAMPS,
.p.subtitle_codec = AV_CODEC_ID_MICRODVD,
.write_header = microdvd_write_header,
.write_packet = microdvd_write_packet,
}

Definition at line 59 of file microdvdenc.c.

AVFMT_NOTIMESTAMPS
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:479
microdvd_write_packet
static int microdvd_write_packet(AVFormatContext *avf, AVPacket *pkt)
Definition: microdvdenc.c:47
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:115
microdvd_write_header
static int microdvd_write_header(struct AVFormatContext *s)
Definition: microdvdenc.c:27
AV_CODEC_ID_MICRODVD
@ AV_CODEC_ID_MICRODVD
Definition: codec_id.h:553