FFmpeg
Loading...
Searching...
No Matches
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 42 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.video_codec = AV_CODEC_ID_NONE,
.p.audio_codec = AV_CODEC_ID_NONE,
.p.subtitle_codec = AV_CODEC_ID_MICRODVD,
.flags_internal = FF_OFMT_FLAG_MAX_ONE_OF_EACH |
.write_header = microdvd_write_header,
.write_packet = microdvd_write_packet,
}
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition avformat.h:498
@ AV_CODEC_ID_NONE
Definition codec_id.h:48
@ AV_CODEC_ID_MICRODVD
Definition codec_id.h:575
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
static int microdvd_write_header(struct AVFormatContext *s)
Definition microdvdenc.c:27
static int microdvd_write_packet(AVFormatContext *avf, AVPacket *pkt)
Definition microdvdenc.c:42
#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
#define FF_OFMT_FLAG_ONLY_DEFAULT_CODECS
If this flag is set, then the only permitted audio/video/subtitle codec ids are AVOutputFormat....
Definition mux.h:59

Definition at line 54 of file microdvdenc.c.