Revision 66e9e302 libavformat/mpeg.h

View differences:

libavformat/mpeg.h
57 57

  
58 58
static const int lpcm_freq_tab[4] = { 48000, 96000, 44100, 32000 };
59 59

  
60
/**
61
 * Parse MPEG-PES five-byte timestamp
62
 */
63
static inline int64_t ff_parse_pes_pts(uint8_t *buf) {
64
    return (int64_t)(*buf & 0x0e) << 29 |
65
            (AV_RB16(buf+1) >> 1) << 15 |
66
             AV_RB16(buf+3) >> 1;
67
}
68

  
60 69
#endif /* FFMPEG_MPEG_H */

Also available in: Unified diff