[Ffmpeg-cvslog] r6634 - trunk/libavformat/amr.c
Baptiste Coudurier
baptiste.coudurier
Wed Oct 11 10:28:42 CEST 2006
Hi
michael wrote:
> [...]
> @@ -169,6 +170,7 @@
> pkt->stream_index = 0;
> pkt->pos= url_ftell(&s->pb);
> pkt->data[0]=toc;
> + pkt->duration= enc->codec_id == CODEC_ID_AMR_NB ? 160 : 320;
> read = get_buffer(&s->pb, pkt->data+1, size-1);
>
> if (read != size-1)
Is it better to set pkt->duration or to set enc->frame_size which make
compute_frame_duration assign pkt->duration to enc->frame_size ?
--
Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A. http://www.smartjog.com
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312
More information about the ffmpeg-cvslog
mailing list