Browse Source

Remove statements immediately following unconditional jumps

This removes a number of compiler warnings.

Signed-off-by: Mans Rullgard <mans@mansr.com>
tags/n0.9
Mans Rullgard 14 years ago
parent
commit
b27565b143
10 changed files with 0 additions and 12 deletions
  1. +0
    -1
      libavcodec/cook.c
  2. +0
    -1
      libavcodec/flicvideo.c
  3. +0
    -1
      libavcodec/mjpegdec.c
  4. +0
    -1
      libavcodec/pcm.c
  5. +0
    -3
      libavcodec/shorten.c
  6. +0
    -1
      libavformat/a64.c
  7. +0
    -1
      libavformat/idroqdec.c
  8. +0
    -1
      libavformat/oma.c
  9. +0
    -1
      libavformat/psxstr.c
  10. +0
    -1
      libavformat/wc3movie.c

+ 0
- 1
libavcodec/cook.c View File

@@ -1156,7 +1156,6 @@ static av_cold int cook_decode_init(AVCodecContext *avctx)
default:
av_log_ask_for_sample(avctx, "Unknown Cook version.\n");
return -1;
break;
}

if(s > 1 && q->subpacket[s].samples_per_channel != q->samples_per_channel) {


+ 0
- 1
libavcodec/flicvideo.c View File

@@ -112,7 +112,6 @@ static av_cold int flic_decode_init(AVCodecContext *avctx)
case 24 : avctx->pix_fmt = PIX_FMT_BGR24; /* Supposedly BGR, but havent any files to test with */
av_log(avctx, AV_LOG_ERROR, "24Bpp FLC/FLX is unsupported due to no test files.\n");
return -1;
break;
default :
av_log(avctx, AV_LOG_ERROR, "Unknown FLC/FLX depth of %d Bpp is unsupported.\n",depth);
return -1;


+ 0
- 1
libavcodec/mjpegdec.c View File

@@ -1540,7 +1540,6 @@ eoi_parser:
}

goto the_end;
break;
case SOS:
if (!s->got_picture) {
av_log(avctx, AV_LOG_WARNING, "Can not process SOS before SOF, skipping\n");


+ 0
- 1
libavcodec/pcm.c View File

@@ -440,7 +440,6 @@ static int pcm_decode_frame(AVCodecContext *avctx,
default:
av_log(avctx, AV_LOG_ERROR, "PCM DVD unsupported sample depth\n");
return -1;
break;
}
samples = (short *) dst_int32_t;
break;


+ 0
- 3
libavcodec/shorten.c View File

@@ -471,7 +471,6 @@ static int shorten_decode_frame(AVCodecContext *avctx,
s->cur_chan = 0;
goto frame_done;
}
break;
}
break;
case FN_VERBATIM:
@@ -489,11 +488,9 @@ static int shorten_decode_frame(AVCodecContext *avctx,
case FN_QUIT:
*data_size = 0;
return buf_size;
break;
default:
av_log(avctx, AV_LOG_ERROR, "unknown shorten function %d\n", cmd);
return -1;
break;
}
}
frame_done:


+ 0
- 1
libavformat/a64.c View File

@@ -55,7 +55,6 @@ static int a64_write_header(struct AVFormatContext *s)
break;
default:
return AVERROR(EINVAL);
break;
}
avio_write(s->pb, header, 2);
c->prev_pkt.size = 0;


+ 0
- 1
libavformat/idroqdec.c View File

@@ -209,7 +209,6 @@ static int roq_read_packet(AVFormatContext *s,
default:
av_log(s, AV_LOG_ERROR, " unknown RoQ chunk (%04X)\n", chunk_type);
return AVERROR_INVALIDDATA;
break;
}
}



+ 0
- 1
libavformat/oma.c View File

@@ -149,7 +149,6 @@ static int oma_read_header(AVFormatContext *s,
default:
av_log(s, AV_LOG_ERROR, "Unsupported codec %d!\n",buf[32]);
return -1;
break;
}

st->codec->block_align = framesize;


+ 0
- 1
libavformat/psxstr.c View File

@@ -234,7 +234,6 @@ static int str_read_packet(AVFormatContext *s,
pkt->stream_index =
str->channels[channel].audio_stream_index;
return 0;
break;
default:
av_log(s, AV_LOG_WARNING, "Unknown sector type %02X\n", sector[0x12]);
/* drop the sector and move on */


+ 0
- 1
libavformat/wc3movie.c View File

@@ -152,7 +152,6 @@ static int wc3_read_header(AVFormatContext *s,
(uint8_t)fourcc_tag, (uint8_t)(fourcc_tag >> 8), (uint8_t)(fourcc_tag >> 16), (uint8_t)(fourcc_tag >> 24),
(uint8_t)fourcc_tag, (uint8_t)(fourcc_tag >> 8), (uint8_t)(fourcc_tag >> 16), (uint8_t)(fourcc_tag >> 24));
return AVERROR_INVALIDDATA;
break;
}

fourcc_tag = avio_rl32(pb);


Loading…
Cancel
Save