diff mbox series

[FFmpeg-devel] avcodec/crystalhd: Remove unused packet

Message ID 20200911165229.5505-1-andreas.rheinhardt@gmail.com
State Accepted
Commit f5a61a1728cba3fdd19370e8a020063676604efa
Headers show
Series [FFmpeg-devel] avcodec/crystalhd: Remove unused packet
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 11, 2020, 4:52 p.m. UTC
Unused since 41b0561dc7246b72a834067da539ae98b1ec6631.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
Completely untested as I don't have a CrystalHD device.

 libavcodec/crystalhd.c | 2 --
 1 file changed, 2 deletions(-)

Comments

James Almer Sept. 11, 2020, 4:54 p.m. UTC | #1
On 9/11/2020 1:52 PM, Andreas Rheinhardt wrote:
> Unused since 41b0561dc7246b72a834067da539ae98b1ec6631.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
> ---
> Completely untested as I don't have a CrystalHD device.
> 
>  libavcodec/crystalhd.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/libavcodec/crystalhd.c b/libavcodec/crystalhd.c
> index e3c5955969..228803183a 100644
> --- a/libavcodec/crystalhd.c
> +++ b/libavcodec/crystalhd.c
> @@ -657,7 +657,6 @@ static int crystalhd_decode_packet(AVCodecContext *avctx, const AVPacket *avpkt)
>      BC_STATUS bc_ret;
>      CHDContext *priv   = avctx->priv_data;
>      HANDLE dev         = priv->dev;
> -    AVPacket filtered_packet = { 0 };
>      int ret = 0;
>  
>      av_log(avctx, AV_LOG_VERBOSE, "CrystalHD: decode_packet\n");
> @@ -700,7 +699,6 @@ static int crystalhd_decode_packet(AVCodecContext *avctx, const AVPacket *avpkt)
>          goto exit;
>      }
>   exit:
> -    av_packet_unref(&filtered_packet);
>      return ret;
>  }

LGTM.
diff mbox series

Patch

diff --git a/libavcodec/crystalhd.c b/libavcodec/crystalhd.c
index e3c5955969..228803183a 100644
--- a/libavcodec/crystalhd.c
+++ b/libavcodec/crystalhd.c
@@ -657,7 +657,6 @@  static int crystalhd_decode_packet(AVCodecContext *avctx, const AVPacket *avpkt)
     BC_STATUS bc_ret;
     CHDContext *priv   = avctx->priv_data;
     HANDLE dev         = priv->dev;
-    AVPacket filtered_packet = { 0 };
     int ret = 0;
 
     av_log(avctx, AV_LOG_VERBOSE, "CrystalHD: decode_packet\n");
@@ -700,7 +699,6 @@  static int crystalhd_decode_packet(AVCodecContext *avctx, const AVPacket *avpkt)
         goto exit;
     }
  exit:
-    av_packet_unref(&filtered_packet);
     return ret;
 }