diff mbox

[FFmpeg-devel,2/2] avcodec/gifdec: don't set AVFrame.pkt_dts

Message ID 20170501235215.348-2-jamrial@gmail.com
State New
Headers show

Commit Message

James Almer May 1, 2017, 11:52 p.m. UTC
decode.c already sets it to the default value.

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavcodec/gifdec.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Paul B Mahol May 2, 2017, 5:45 a.m. UTC | #1
On 5/2/17, James Almer <jamrial@gmail.com> wrote:
> decode.c already sets it to the default value.
>
> Signed-off-by: James Almer <jamrial@gmail.com>
> ---
>  libavcodec/gifdec.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c
> index 2eeed4c4c7..3d90210737 100644
> --- a/libavcodec/gifdec.c
> +++ b/libavcodec/gifdec.c
> @@ -467,7 +467,6 @@ FF_DISABLE_DEPRECATION_WARNINGS
>      s->frame->pkt_pts = avpkt->pts;
>  FF_ENABLE_DEPRECATION_WARNINGS
>  #endif
> -    s->frame->pkt_dts = avpkt->dts;
>      s->frame->pkt_duration = avpkt->duration;
>
>      if (avpkt->size >= 6) {

lgtm
diff mbox

Patch

diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c
index 2eeed4c4c7..3d90210737 100644
--- a/libavcodec/gifdec.c
+++ b/libavcodec/gifdec.c
@@ -467,7 +467,6 @@  FF_DISABLE_DEPRECATION_WARNINGS
     s->frame->pkt_pts = avpkt->pts;
 FF_ENABLE_DEPRECATION_WARNINGS
 #endif
-    s->frame->pkt_dts = avpkt->dts;
     s->frame->pkt_duration = avpkt->duration;
 
     if (avpkt->size >= 6) {