[FFmpeg-devel] [PATCH] [RFC] avformat: use "genpts" option for output file.
Michael Niedermayer
michaelni at gmx.at
Mon Nov 3 18:42:16 CET 2014
On Mon, Nov 03, 2014 at 03:21:33PM +0100, Benoit Fouet wrote:
> When "-fflags +genpts" is used for output file, use dts as pts.
>
> Signed-off-by: Benoit Fouet <benoit.fouet at free.fr>
> ---
> libavformat/mux.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/libavformat/mux.c b/libavformat/mux.c
> index 5e45bd8..1d42451 100644
> --- a/libavformat/mux.c
> +++ b/libavformat/mux.c
> @@ -884,6 +884,9 @@ int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt)
> ret = AVERROR(EINVAL);
> goto fail;
> }
> +
> + if (pkt->pts == AV_NOPTS_VALUE && s->flags & AVFMT_FLAG_GENPTS)
> + pkt->pts = pkt->dts;
does this set pts to invalid value for h264 with b frames or
b pyramid ?
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
There will always be a question for which you do not know the correct answer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141103/f03526c0/attachment.asc>
More information about the ffmpeg-devel
mailing list