Mercurial > libavformat.hg
comparison rtpenc.c @ 4380:1b695f013cd3 libavformat
Introduce a new num_frames field in RTPDemuxContext so that rtp_aac.c
does not need to abuse read_buf_index
author | lucabe |
---|---|
date | Thu, 05 Feb 2009 14:53:25 +0000 |
parents | f49e5d92ab26 |
children | 80f21f72d7d6 |
comparison
equal
deleted
inserted
replaced
4379:7c628699cc3d | 4380:1b695f013cd3 |
---|---|
100 n = 1; | 100 n = 1; |
101 s->max_payload_size = n * TS_PACKET_SIZE; | 101 s->max_payload_size = n * TS_PACKET_SIZE; |
102 s->buf_ptr = s->buf; | 102 s->buf_ptr = s->buf; |
103 break; | 103 break; |
104 case CODEC_ID_AAC: | 104 case CODEC_ID_AAC: |
105 s->read_buf_index = 0; | 105 s->num_frames = 0; |
106 default: | 106 default: |
107 if (st->codec->codec_type == CODEC_TYPE_AUDIO) { | 107 if (st->codec->codec_type == CODEC_TYPE_AUDIO) { |
108 av_set_pts_info(st, 32, 1, st->codec->sample_rate); | 108 av_set_pts_info(st, 32, 1, st->codec->sample_rate); |
109 } | 109 } |
110 s->buf_ptr = s->buf; | 110 s->buf_ptr = s->buf; |