Commit 67351924 authored by Diego Biurrun's avatar Diego Biurrun

Drop unreachable break and return statements

parent 99434f4d
...@@ -191,7 +191,6 @@ static int decode_bmv_frame(const uint8_t *source, int src_len, uint8_t *frame, ...@@ -191,7 +191,6 @@ static int decode_bmv_frame(const uint8_t *source, int src_len, uint8_t *frame,
if (dst == dst_end) if (dst == dst_end)
return 0; return 0;
} }
return 0;
} }
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
......
...@@ -173,7 +173,6 @@ static int decode_nal_sei_message(HEVCContext *s) ...@@ -173,7 +173,6 @@ static int decode_nal_sei_message(HEVCContext *s)
} else { /* nal_unit_type == NAL_SEI_SUFFIX */ } else { /* nal_unit_type == NAL_SEI_SUFFIX */
return decode_nal_sei_suffix(s, payload_type, payload_size); return decode_nal_sei_suffix(s, payload_type, payload_size);
} }
return 0;
} }
static int more_rbsp_data(GetBitContext *gb) static int more_rbsp_data(GetBitContext *gb)
......
...@@ -831,8 +831,6 @@ static int parse_bintree(Indeo3DecodeContext *ctx, AVCodecContext *avctx, ...@@ -831,8 +831,6 @@ static int parse_bintree(Indeo3DecodeContext *ctx, AVCodecContext *avctx,
break; break;
} }
}//while }//while
return 0;
} }
......
...@@ -926,13 +926,10 @@ static int process_frame_obj(SANMVideoContext *ctx) ...@@ -926,13 +926,10 @@ static int process_frame_obj(SANMVideoContext *ctx)
case 1: case 1:
case 3: case 3:
return old_codec1(ctx, top, left, w, h); return old_codec1(ctx, top, left, w, h);
break;
case 37: case 37:
return old_codec37(ctx, top, left, w, h); return old_codec37(ctx, top, left, w, h);
break;
case 47: case 47:
return old_codec47(ctx, top, left, w, h); return old_codec47(ctx, top, left, w, h);
break;
default: default:
avpriv_request_sample(ctx->avctx, "Subcodec %d", codec); avpriv_request_sample(ctx->avctx, "Subcodec %d", codec);
return AVERROR_PATCHWELCOME; return AVERROR_PATCHWELCOME;
......
...@@ -436,7 +436,6 @@ static int rtp_read(URLContext *h, uint8_t *buf, int size) ...@@ -436,7 +436,6 @@ static int rtp_read(URLContext *h, uint8_t *buf, int size)
if (h->flags & AVIO_FLAG_NONBLOCK) if (h->flags & AVIO_FLAG_NONBLOCK)
return AVERROR(EAGAIN); return AVERROR(EAGAIN);
} }
return len;
} }
static int rtp_write(URLContext *h, const uint8_t *buf, int size) static int rtp_write(URLContext *h, const uint8_t *buf, int size)
......
...@@ -700,7 +700,6 @@ static int rtsp_listen(AVFormatContext *s) ...@@ -700,7 +700,6 @@ static int rtsp_listen(AVFormatContext *s)
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
} }
return 0;
} }
static int rtsp_probe(AVProbeData *p) static int rtsp_probe(AVProbeData *p)
......
...@@ -129,7 +129,6 @@ static int smush_read_header(AVFormatContext *ctx) ...@@ -129,7 +129,6 @@ static int smush_read_header(AVFormatContext *ctx)
break; break;
default: default:
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
break;
} }
} }
......
...@@ -240,8 +240,6 @@ static int set_string_number(void *obj, void *target_obj, const AVOption *o, con ...@@ -240,8 +240,6 @@ static int set_string_number(void *obj, void *target_obj, const AVOption *o, con
return 0; return 0;
notfirst = 1; notfirst = 1;
} }
return 0;
} }
int av_opt_set(void *obj, const char *name, const char *val, int search_flags) int av_opt_set(void *obj, const char *name, const char *val, int search_flags)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment