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  
    181181        *((uint32_t*)buf)=htonl(tmp);
    182182}
    183183
    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 
    189184static inline uint32_t payload_header_get_tdt(uint8_t *buf){
    190185        uint32_t *tmp=(uint32_t*)buf;
    191186        return ((ntohl(*tmp))>>4) & 0x3;
     
    196191        return ((ntohl(*tmp))>>6) & 0x3;
    197192}
    198193
    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 
    204194static int create_packed_conf(EncState *s){
    205195        ogg_packet p;
    206196        theora_state *tstate=&s->tstate;