comparison vocenc.c @ 4081:3d6e7901bf05 libavformat

avoid POSIX reserved _t suffix
author aurel
date Thu, 11 Dec 2008 22:34:14 +0000
parents 1d3d17de20ba
children 536e5527c1e0
comparison
equal deleted inserted replaced
4080:8ddf05b864a4 4081:3d6e7901bf05
22 #include "voc.h" 22 #include "voc.h"
23 23
24 24
25 typedef struct voc_enc_context { 25 typedef struct voc_enc_context {
26 int param_written; 26 int param_written;
27 } voc_enc_context_t; 27 } VocEncContext;
28 28
29 static int voc_write_header(AVFormatContext *s) 29 static int voc_write_header(AVFormatContext *s)
30 { 30 {
31 ByteIOContext *pb = s->pb; 31 ByteIOContext *pb = s->pb;
32 const int header_size = 26; 32 const int header_size = 26;
44 return 0; 44 return 0;
45 } 45 }
46 46
47 static int voc_write_packet(AVFormatContext *s, AVPacket *pkt) 47 static int voc_write_packet(AVFormatContext *s, AVPacket *pkt)
48 { 48 {
49 voc_enc_context_t *voc = s->priv_data; 49 VocEncContext *voc = s->priv_data;
50 AVCodecContext *enc = s->streams[0]->codec; 50 AVCodecContext *enc = s->streams[0]->codec;
51 ByteIOContext *pb = s->pb; 51 ByteIOContext *pb = s->pb;
52 52
53 if (!voc->param_written) { 53 if (!voc->param_written) {
54 if (enc->codec_tag > 0xFF) { 54 if (enc->codec_tag > 0xFF) {
91 AVOutputFormat voc_muxer = { 91 AVOutputFormat voc_muxer = {
92 "voc", 92 "voc",
93 NULL_IF_CONFIG_SMALL("Creative Voice file format"), 93 NULL_IF_CONFIG_SMALL("Creative Voice file format"),
94 "audio/x-voc", 94 "audio/x-voc",
95 "voc", 95 "voc",
96 sizeof(voc_enc_context_t), 96 sizeof(VocEncContext),
97 CODEC_ID_PCM_U8, 97 CODEC_ID_PCM_U8,
98 CODEC_ID_NONE, 98 CODEC_ID_NONE,
99 voc_write_header, 99 voc_write_header,
100 voc_write_packet, 100 voc_write_packet,
101 voc_write_trailer, 101 voc_write_trailer,