Mercurial > libavformat.hg
comparison nutenc.c @ 3135:cf8df6a00eb5 libavformat
misc spelling fixes
author | diego |
---|---|
date | Mon, 10 Mar 2008 18:42:09 +0000 |
parents | ea5623a8efde |
children | 6f61c3b36632 |
comparison
equal
deleted
inserted
replaced
3134:8207e7600a4b | 3135:cf8df6a00eb5 |
---|---|
67 header |= (!lsf)<<19; | 67 header |= (!lsf)<<19; |
68 header |= (4-layer)<<17; | 68 header |= (4-layer)<<17; |
69 header |= 1<<16; //no crc | 69 header |= 1<<16; //no crc |
70 AV_WB32(out, header); | 70 AV_WB32(out, header); |
71 if(size <= 0) | 71 if(size <= 0) |
72 return 2; //we guess theres no crc, if there is one the user clearly doesnt care about overhead | 72 return 2; //we guess there is no crc, if there is one the user clearly does not care about overhead |
73 if(bitrate_index == 30) | 73 if(bitrate_index == 30) |
74 return -1; //something is wrong ... | 74 return -1; //something is wrong ... |
75 | 75 |
76 header |= (bitrate_index>>1)<<12; | 76 header |= (bitrate_index>>1)<<12; |
77 header |= sample_rate_index<<10; | 77 header |= sample_rate_index<<10; |
78 header |= (bitrate_index&1)<<9; | 78 header |= (bitrate_index&1)<<9; |
79 | 79 |
80 return 2; //FIXME actually put the needed ones in build_elision_headers() | 80 return 2; //FIXME actually put the needed ones in build_elision_headers() |
81 return 3; //we guess that the private bit isnt set | 81 return 3; //we guess that the private bit is not set |
82 //FIXME the above asumtations should be checked, if these turn out false too often something should be done | 82 //FIXME the above assumptions should be checked, if these turn out false too often something should be done |
83 } | 83 } |
84 return 0; | 84 return 0; |
85 } | 85 } |
86 | 86 |
87 static int find_header_idx(AVFormatContext *s, AVCodecContext *c, int size, int frame_type){ | 87 static int find_header_idx(AVFormatContext *s, AVCodecContext *c, int size, int frame_type){ |