Thank you for your reply,
I am already sending frames with exactly the same number of frames to the
encoder.

Olivier

On Fri, Jul 3, 2020 at 12:47 PM Hendrik Leppkes <[email protected]> wrote:

> On Fri, Jul 3, 2020 at 11:24 AM Olivier Ayache <[email protected]>
> wrote:
> >
> > I am currently working with FLAC encoder and I think I found a bug on pts
> > setted on AVPacket.
> > In  flac_encode_frame function the pts provided is frame's pts, if we
> feed
> > the encoder with small frames, an encoded packet will be valid after
> > several frames and the pts of the first packet won't be 0.
> >
>
> Encoders have a fixed frame size (avctx->frame_size), sending anything
> but the correct number of audio samples to an encoder is not using it
> correctly - unless it is specifically marked as variable frame size
> (AV_CODEC_CAP_VARIABLE_FRAME_SIZE), which flacenc is not.
>
> - Hendrik
> _______________________________________________
> ffmpeg-devel mailing list
> [email protected]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> [email protected] with subject "unsubscribe".
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to