Revision e269ab79

View differences:

libavformat/rdt.c
172 172

  
173 173
int
174 174
ff_rdt_parse_header(const uint8_t *buf, int len,
175
                    int *set_id, int *seq_no, int *stream_id,
176
                    int *is_keyframe, uint32_t *timestamp)
175
                    int *pset_id, int *pseq_no, int *pstream_id,
176
                    int *pis_keyframe, uint32_t *ptimestamp)
177 177
{
178 178
    int consumed = 10;
179 179

  
......
242 242
     * [2] http://www.wireshark.org/docs/dfref/r/rdt.html and
243 243
     *     http://anonsvn.wireshark.org/viewvc/trunk/epan/dissectors/packet-rdt.c
244 244
     */
245
    if (set_id)      *set_id      = (buf[0]>>1) & 0x1f;
246
    if (seq_no)      *seq_no      = AV_RB16(buf+1);
247
    if (timestamp)   *timestamp   = AV_RB32(buf+4);
248
    if (stream_id)   *stream_id   = (buf[3]>>1) & 0x1f;
249
    if (is_keyframe) *is_keyframe = !(buf[3] & 0x1);
245
    if (pset_id)      *pset_id      = (buf[0]>>1) & 0x1f;
246
    if (pseq_no)      *pseq_no      = AV_RB16(buf+1);
247
    if (ptimestamp)   *ptimestamp   = AV_RB32(buf+4);
248
    if (pstream_id)   *pstream_id   = (buf[3]>>1) & 0x1f;
249
    if (pis_keyframe) *pis_keyframe = !(buf[3] & 0x1);
250 250

  
251 251
    return consumed;
252 252
}

Also available in: Unified diff