From: James Almer <jamrial@gmail.com>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH] avcodec/setts_bsf: set the output packet duration to 0
Date: Sun, 13 Feb 2022 14:07:27 -0300
Message-ID: <5ae2e409-77bd-cd38-d10b-d65f2c4e8a84@gmail.com> (raw)
In-Reply-To: <20220209152858.2339-1-jamrial@gmail.com>
On 2/9/2022 12:28 PM, James Almer wrote:
> It's not possible to know the resulting packet's duration after
> applying the expression as it depends on the timestamp of the next
> packet, which we haven't seen yet.
> The old duration, if any, is no longer valid, so just remove it.
>
> Signed-off-by: James Almer <jamrial@gmail.com>
> ---
> libavcodec/setts_bsf.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libavcodec/setts_bsf.c b/libavcodec/setts_bsf.c
> index d604f91f71..56307fc8cd 100644
> --- a/libavcodec/setts_bsf.c
> +++ b/libavcodec/setts_bsf.c
> @@ -180,6 +180,7 @@ static int setts_filter(AVBSFContext *ctx, AVPacket *pkt)
>
> pkt->pts = new_pts;
> pkt->dts = new_dts;
> + pkt->duration = 0;
>
> return ret;
> }
Will apply.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2022-02-13 17:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-09 15:28 James Almer
2022-02-13 17:07 ` James Almer [this message]
2022-02-13 17:14 ` Paul B Mahol
2022-02-13 17:20 ` James Almer
2022-02-13 17:22 ` Andreas Rheinhardt
2022-02-13 17:28 ` James Almer
2022-02-13 17:32 ` Andreas Rheinhardt
2022-02-13 18:38 ` Gyan Doshi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5ae2e409-77bd-cd38-d10b-d65f2c4e8a84@gmail.com \
--to=jamrial@gmail.com \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git