~ubuntu-branches/ubuntu/saucy/gst-libav1.0/saucy-proposed

« back to all changes in this revision

Viewing changes to gst-libs/ext/libav/libavformat/rtpdec_qcelp.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2013-07-30 09:00:15 UTC
  • mfrom: (1.1.16) (7.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20130730090015-sc1ou2yssu7q5w4e
Tags: 1.1.3-1
* New upstream development snapshot:
  + debian/control:
    - Build depend on GStreamer and gst-plugins-base >= 1.1.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
 
1
/*
2
2
 * RTP Depacketization of QCELP/PureVoice, RFC 2658
3
3
 * Copyright (c) 2010 Martin Storsjo
4
4
 *
210
210
 
211
211
static int qcelp_parse_packet(AVFormatContext *ctx, PayloadContext *data,
212
212
                              AVStream *st, AVPacket *pkt, uint32_t *timestamp,
213
 
                              const uint8_t *buf, int len, int flags)
 
213
                              const uint8_t *buf, int len, uint16_t seq,
 
214
                              int flags)
214
215
{
215
216
    if (buf)
216
217
        return store_packet(ctx, data, st, pkt, timestamp, buf, len);
221
222
RTPDynamicProtocolHandler ff_qcelp_dynamic_handler = {
222
223
    .enc_name           = "x-Purevoice",
223
224
    .codec_type         = AVMEDIA_TYPE_AUDIO,
224
 
    .codec_id           = CODEC_ID_QCELP,
 
225
    .codec_id           = AV_CODEC_ID_QCELP,
225
226
    .static_payload_id  = 12,
226
227
    .alloc              = qcelp_new_context,
227
228
    .free               = qcelp_free_context,