diff mbox

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

Message ID 20191010072951.8103-3-lq@chinaffmpeg.org
State Accepted
Commit 388e1fc9b5becce208c024c5f675890ab3a9adbe
Headers show

Commit Message

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

Comments

Lance Wang Oct. 10, 2019, 9:23 a.m. UTC | #1
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".
diff mbox

Patch

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;