FFmpeg
Loading...
Searching...
No Matches
vocenc.c File Reference
#include "voc.h"
#include "internal.h"
#include "mux.h"

Go to the source code of this file.

Data Structures

struct  VocEncContext
 

Functions

static int voc_write_header (AVFormatContext *s)
 
static int voc_write_packet (AVFormatContext *s, AVPacket *pkt)
 
static int voc_write_trailer (AVFormatContext *s)
 

Variables

const FFOutputFormat ff_voc_muxer
 

Function Documentation

◆ voc_write_header()

static int voc_write_header ( AVFormatContext * s)
static

Definition at line 31 of file vocenc.c.

◆ voc_write_packet()

static int voc_write_packet ( AVFormatContext * s,
AVPacket * pkt )
static

Definition at line 55 of file vocenc.c.

◆ voc_write_trailer()

static int voc_write_trailer ( AVFormatContext * s)
static

Definition at line 94 of file vocenc.c.

Variable Documentation

◆ ff_voc_muxer

const FFOutputFormat ff_voc_muxer
Initial value:
= {
.p.name = "voc",
.p.long_name = NULL_IF_CONFIG_SMALL("Creative Voice"),
.p.mime_type = "audio/x-voc",
.p.extensions = "voc",
.priv_data_size = sizeof(VocEncContext),
.p.audio_codec = AV_CODEC_ID_PCM_S16LE,
.p.video_codec = AV_CODEC_ID_NONE,
.write_header = voc_write_header,
.write_packet = voc_write_packet,
.write_trailer = voc_write_trailer,
.p.codec_tag = ff_voc_codec_tags_list,
.p.flags = AVFMT_NOTIMESTAMPS,
}
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition avformat.h:498
@ AV_CODEC_ID_PCM_S16LE
Definition codec_id.h:330
@ AV_CODEC_ID_NONE
Definition codec_id.h:48
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
const AVCodecTag *const ff_voc_codec_tags_list[]
static int voc_write_trailer(AVFormatContext *s)
Definition vocenc.c:94
static int voc_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition vocenc.c:55
static int voc_write_header(AVFormatContext *s)
Definition vocenc.c:31

Definition at line 100 of file vocenc.c.