[Ffmpeg-cvslog] r6634 - trunk/libavformat/amr.c
Michael Niedermayer
michaelni
Wed Oct 11 12:41:44 CEST 2006
Hi
On Wed, Oct 11, 2006 at 10:28:42AM +0200, Baptiste Coudurier wrote:
> 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 ?
AVCodecContext->frame_size should be set by the decoder not the demxuer
normally
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is
More information about the ffmpeg-cvslog
mailing list