Mercurial > libavformat.hg
comparison nuv.c @ 4077:72457fa9856a libavformat
Avoid _t in typedef type
author | reimar |
---|---|
date | Thu, 11 Dec 2008 19:19:23 +0000 |
parents | 1d3d17de20ba |
children | 7d2f3f1b68d8 |
comparison
equal
deleted
inserted
replaced
4076:a5c615b9d8ec | 4077:72457fa9856a |
---|---|
31 NUV_VIDEO = 'V', | 31 NUV_VIDEO = 'V', |
32 NUV_EXTRADATA = 'D', | 32 NUV_EXTRADATA = 'D', |
33 NUV_AUDIO = 'A', | 33 NUV_AUDIO = 'A', |
34 NUV_SEEKP = 'R', | 34 NUV_SEEKP = 'R', |
35 NUV_MYTHEXT = 'X' | 35 NUV_MYTHEXT = 'X' |
36 } frametype_t; | 36 } nuv_frametype; |
37 | 37 |
38 static int nuv_probe(AVProbeData *p) { | 38 static int nuv_probe(AVProbeData *p) { |
39 if (!memcmp(p->buf, "NuppelVideo", 12)) | 39 if (!memcmp(p->buf, "NuppelVideo", 12)) |
40 return AVPROBE_SCORE_MAX; | 40 return AVPROBE_SCORE_MAX; |
41 if (!memcmp(p->buf, "MythTVVideo", 12)) | 41 if (!memcmp(p->buf, "MythTVVideo", 12)) |
53 * \param myth set if this is a MythTVVideo format file | 53 * \param myth set if this is a MythTVVideo format file |
54 * \return 1 if all required codec data was found | 54 * \return 1 if all required codec data was found |
55 */ | 55 */ |
56 static int get_codec_data(ByteIOContext *pb, AVStream *vst, | 56 static int get_codec_data(ByteIOContext *pb, AVStream *vst, |
57 AVStream *ast, int myth) { | 57 AVStream *ast, int myth) { |
58 frametype_t frametype; | 58 nuv_frametype frametype; |
59 if (!vst && !myth) | 59 if (!vst && !myth) |
60 return 1; // no codec data needed | 60 return 1; // no codec data needed |
61 while (!url_feof(pb)) { | 61 while (!url_feof(pb)) { |
62 int size, subtype; | 62 int size, subtype; |
63 frametype = get_byte(pb); | 63 frametype = get_byte(pb); |
189 | 189 |
190 static int nuv_packet(AVFormatContext *s, AVPacket *pkt) { | 190 static int nuv_packet(AVFormatContext *s, AVPacket *pkt) { |
191 NUVContext *ctx = s->priv_data; | 191 NUVContext *ctx = s->priv_data; |
192 ByteIOContext *pb = s->pb; | 192 ByteIOContext *pb = s->pb; |
193 uint8_t hdr[HDRSIZE]; | 193 uint8_t hdr[HDRSIZE]; |
194 frametype_t frametype; | 194 nuv_frametype frametype; |
195 int ret, size; | 195 int ret, size; |
196 while (!url_feof(pb)) { | 196 while (!url_feof(pb)) { |
197 int copyhdrsize = ctx->rtjpg_video ? HDRSIZE : 0; | 197 int copyhdrsize = ctx->rtjpg_video ? HDRSIZE : 0; |
198 ret = get_buffer(pb, hdr, HDRSIZE); | 198 ret = get_buffer(pb, hdr, HDRSIZE); |
199 if (ret <= 0) | 199 if (ret <= 0) |