On 06/17/2012 11:03 AM, Martin Storsjö wrote:
> + if ((ret = ff_alloc_packet(avpkt, 50))) {
> + av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
> + return ret;
> + }
> +
> + WebRtcIlbcfix_EncodeImpl((WebRtc_UWord16*) avpkt->data, (const
> WebRtc_Word16*) frame->data[0], &s->encoder);
> +
> + avpkt->pts = frame->pts;
Since the encoder does not use CODEC_CAP_DELAY, it does not need to set
pts. Packet pts will be set to the frame pts by avcodec_encode_audio2().
-Justin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel