Mercurial > libavformat.hg
comparison vocenc.c @ 2277:456e19bc6cf7 libavformat
Replace ENOSYS by ENOTSUP as in this case the problem is not really a function
which is not available, but a media type which is not supported.
author | takis |
---|---|
date | Fri, 20 Jul 2007 08:05:27 +0000 |
parents | 3c1e2d519277 |
children | 863ea27be885 |
comparison
equal
deleted
inserted
replaced
2276:3c1e2d519277 | 2277:456e19bc6cf7 |
---|---|
32 const int header_size = 26; | 32 const int header_size = 26; |
33 const int version = 0x0114; | 33 const int version = 0x0114; |
34 | 34 |
35 if (s->nb_streams != 1 | 35 if (s->nb_streams != 1 |
36 || s->streams[0]->codec->codec_type != CODEC_TYPE_AUDIO) | 36 || s->streams[0]->codec->codec_type != CODEC_TYPE_AUDIO) |
37 return AVERROR(ENOSYS); | 37 return AVERROR(ENOTSUP); |
38 | 38 |
39 put_buffer(pb, voc_magic, sizeof(voc_magic) - 1); | 39 put_buffer(pb, voc_magic, sizeof(voc_magic) - 1); |
40 put_le16(pb, header_size); | 40 put_le16(pb, header_size); |
41 put_le16(pb, version); | 41 put_le16(pb, version); |
42 put_le16(pb, ~version + 0x1234); | 42 put_le16(pb, ~version + 0x1234); |