Ticket #39719: patch-mediastreamer2-src-videofilters-theora.c.diff
File patch-mediastreamer2-src-videofilters-theora.c.diff, 801 bytes (added by gallafent, 10 years ago) |
---|
-
mediastreamer2/src/videofilters/theora.c
old new 181 181 *((uint32_t*)buf)=htonl(tmp); 182 182 } 183 183 184 static inline uint32_t payload_header_get_ident(uint8_t *buf){185 uint32_t *tmp=(uint32_t*)buf;186 return (ntohl(*tmp)>>8) & 0xFFFFFF;187 }188 189 184 static inline uint32_t payload_header_get_tdt(uint8_t *buf){ 190 185 uint32_t *tmp=(uint32_t*)buf; 191 186 return ((ntohl(*tmp))>>4) & 0x3; … … 196 191 return ((ntohl(*tmp))>>6) & 0x3; 197 192 } 198 193 199 static inline uint32_t payload_header_get_pkts(uint8_t *buf){200 uint32_t *tmp=(uint32_t*)buf;201 return ntohl(*tmp) & 0xf;202 }203 204 194 static int create_packed_conf(EncState *s){ 205 195 ogg_packet p; 206 196 theora_state *tstate=&s->tstate;