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

Submitted by James Almer on May 1, 2017, 11:52 p.m.

Details

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

Commit Message

James Almer May 1, 2017, 11:52 p.m.
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.
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

Patch hide | download patch | download mbox

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) {