Mercurial > libavformat.hg
diff 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 |
line wrap: on
line diff
--- a/rtpenc.c Thu Feb 05 08:59:38 2009 +0000 +++ b/rtpenc.c Thu Feb 05 14:53:25 2009 +0000 @@ -102,7 +102,7 @@ s->buf_ptr = s->buf; break; case CODEC_ID_AAC: - s->read_buf_index = 0; + s->num_frames = 0; default: if (st->codec->codec_type == CODEC_TYPE_AUDIO) { av_set_pts_info(st, 32, 1, st->codec->sample_rate);