[FFmpeg-devel,v1,3/3] avcodec/psd: remove unneeded code

Submitted by Steven Liu on Oct. 10, 2019, 7:29 a.m.

Details

Message ID 20191010072951.8103-3-lq@chinaffmpeg.org
State New
Headers show

Commit Message

Steven Liu Oct. 10, 2019, 7:29 a.m.
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
---
 libavcodec/psd.c | 2 --
 1 file changed, 2 deletions(-)

Comments

lance.lmwang@gmail.com Oct. 10, 2019, 9:23 a.m.
patchset LGTM

On Thu, Oct 10, 2019 at 03:29:51PM +0800, Steven Liu wrote:
> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
> ---
>  libavcodec/psd.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/libavcodec/psd.c b/libavcodec/psd.c
> index a31f73857a..ae7ad4e559 100644
> --- a/libavcodec/psd.c
> +++ b/libavcodec/psd.c
> @@ -211,11 +211,9 @@ static int decode_header(PSDContext * s)
>      case 2:
>          avpriv_request_sample(s->avctx, "ZIP without predictor compression");
>          return AVERROR_PATCHWELCOME;
> -        break;
>      case 3:
>          avpriv_request_sample(s->avctx, "ZIP with predictor compression");
>          return AVERROR_PATCHWELCOME;
> -        break;
>      default:
>          av_log(s->avctx, AV_LOG_ERROR, "Unknown compression %d.\n", s->compression);
>          return AVERROR_INVALIDDATA;
> -- 
> 2.15.1
> 
> 
> 
> _______________________________________________
> 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".

Patch hide | download patch | download mbox

diff --git a/libavcodec/psd.c b/libavcodec/psd.c
index a31f73857a..ae7ad4e559 100644
--- a/libavcodec/psd.c
+++ b/libavcodec/psd.c
@@ -211,11 +211,9 @@  static int decode_header(PSDContext * s)
     case 2:
         avpriv_request_sample(s->avctx, "ZIP without predictor compression");
         return AVERROR_PATCHWELCOME;
-        break;
     case 3:
         avpriv_request_sample(s->avctx, "ZIP with predictor compression");
         return AVERROR_PATCHWELCOME;
-        break;
     default:
         av_log(s->avctx, AV_LOG_ERROR, "Unknown compression %d.\n", s->compression);
         return AVERROR_INVALIDDATA;