Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
| ... | ... |
@@ -3720,7 +3720,7 @@ static void new_audio_stream(AVFormatContext *oc, int file_idx) |
| 3720 | 3720 |
static void new_data_stream(AVFormatContext *oc, int file_idx) |
| 3721 | 3721 |
{
|
| 3722 | 3722 |
AVStream *st; |
| 3723 |
- AVOutputStream *ost; |
|
| 3723 |
+ AVOutputStream *ost av_unused; |
|
| 3724 | 3724 |
AVCodec *codec=NULL; |
| 3725 | 3725 |
AVCodecContext *data_enc; |
| 3726 | 3726 |
|
| ... | ... |
@@ -1438,7 +1438,7 @@ static int queue_picture(VideoState *is, AVFrame *src_frame, double pts1, int64_ |
| 1438 | 1438 |
|
| 1439 | 1439 |
static int get_video_frame(VideoState *is, AVFrame *frame, int64_t *pts, AVPacket *pkt) |
| 1440 | 1440 |
{
|
| 1441 |
- int len1, got_picture, i; |
|
| 1441 |
+ int len1 av_unused, got_picture, i; |
|
| 1442 | 1442 |
|
| 1443 | 1443 |
if (packet_queue_get(&is->videoq, pkt, 1) < 0) |
| 1444 | 1444 |
return -1; |
| ... | ... |
@@ -1813,7 +1813,7 @@ static int subtitle_thread(void *arg) |
| 1813 | 1813 |
VideoState *is = arg; |
| 1814 | 1814 |
SubPicture *sp; |
| 1815 | 1815 |
AVPacket pkt1, *pkt = &pkt1; |
| 1816 |
- int len1, got_subtitle; |
|
| 1816 |
+ int len1 av_unused, got_subtitle; |
|
| 1817 | 1817 |
double pts; |
| 1818 | 1818 |
int i, j; |
| 1819 | 1819 |
int r, g, b, y, u, v, a; |
| ... | ... |
@@ -252,7 +252,6 @@ static int a64multi_encode_frame(AVCodecContext *avctx, unsigned char *buf, |
| 252 | 252 |
int b_width; |
| 253 | 253 |
|
| 254 | 254 |
int req_size; |
| 255 |
- int num_frames = c->mc_lifetime; |
|
| 256 | 255 |
|
| 257 | 256 |
int *charmap = c->mc_charmap; |
| 258 | 257 |
uint8_t *colram = c->mc_colram; |
| ... | ... |
@@ -280,7 +279,6 @@ static int a64multi_encode_frame(AVCodecContext *avctx, unsigned char *buf, |
| 280 | 280 |
if (!c->mc_lifetime) return 0; |
| 281 | 281 |
/* no more frames in queue, prepare to flush remaining frames */ |
| 282 | 282 |
if (!c->mc_frame_counter) {
|
| 283 |
- num_frames = c->mc_lifetime; |
|
| 284 | 283 |
c->mc_lifetime = 0; |
| 285 | 284 |
} |
| 286 | 285 |
/* still frames in queue so limit lifetime to remaining frames */ |
| ... | ... |
@@ -109,7 +109,7 @@ void ff_celp_lp_synthesis_filterf(float *out, const float *filter_coeffs, |
| 109 | 109 |
old_out2 = out[-2]; |
| 110 | 110 |
old_out3 = out[-1]; |
| 111 | 111 |
for (n = 0; n <= buffer_length - 4; n+=4) {
|
| 112 |
- float tmp0,tmp1,tmp2,tmp3; |
|
| 112 |
+ float tmp0,tmp1,tmp2; |
|
| 113 | 113 |
float val; |
| 114 | 114 |
|
| 115 | 115 |
out0 = in[0]; |
| ... | ... |
@@ -160,7 +160,6 @@ void ff_celp_lp_synthesis_filterf(float *out, const float *filter_coeffs, |
| 160 | 160 |
tmp0 = out0; |
| 161 | 161 |
tmp1 = out1; |
| 162 | 162 |
tmp2 = out2; |
| 163 |
- tmp3 = out3; |
|
| 164 | 163 |
|
| 165 | 164 |
out3 -= a * tmp2; |
| 166 | 165 |
out2 -= a * tmp1; |
| ... | ... |
@@ -1535,8 +1535,8 @@ static void dca_exss_parse_header(DCAContext *s) |
| 1535 | 1535 |
{
|
| 1536 | 1536 |
int ss_index; |
| 1537 | 1537 |
int blownup; |
| 1538 |
- int header_size; |
|
| 1539 |
- int hd_size; |
|
| 1538 |
+ int header_size av_unused; |
|
| 1539 |
+ int hd_size av_unused; |
|
| 1540 | 1540 |
int num_audiop = 1; |
| 1541 | 1541 |
int num_assets = 1; |
| 1542 | 1542 |
int active_ss_mask[8]; |
| ... | ... |
@@ -1622,7 +1622,6 @@ static int dca_decode_frame(AVCodecContext * avctx, |
| 1622 | 1622 |
{
|
| 1623 | 1623 |
const uint8_t *buf = avpkt->data; |
| 1624 | 1624 |
int buf_size = avpkt->size; |
| 1625 |
- int data_size_tmp; |
|
| 1626 | 1625 |
|
| 1627 | 1626 |
int lfe_samples; |
| 1628 | 1627 |
int num_core_channels = 0; |
| ... | ... |
@@ -245,7 +245,7 @@ static int parse_source_parameters(AVCodecContext *avctx, GetBitContext *gb, |
| 245 | 245 |
int ff_dirac_parse_sequence_header(AVCodecContext *avctx, GetBitContext *gb, |
| 246 | 246 |
dirac_source_params *source) |
| 247 | 247 |
{
|
| 248 |
- unsigned version_major, version_minor; |
|
| 248 |
+ unsigned version_major, version_minor av_unused; |
|
| 249 | 249 |
unsigned video_format, picture_coding_mode; |
| 250 | 250 |
|
| 251 | 251 |
version_major = svq3_get_ue_golomb(gb); |
| ... | ... |
@@ -235,7 +235,7 @@ int rv_decode_dc(MpegEncContext *s, int n) |
| 235 | 235 |
/* read RV 1.0 compatible frame header */ |
| 236 | 236 |
static int rv10_decode_picture_header(MpegEncContext *s) |
| 237 | 237 |
{
|
| 238 |
- int mb_count, pb_frame, marker, unk, mb_xy; |
|
| 238 |
+ int mb_count, pb_frame, marker, unk av_unused, mb_xy; |
|
| 239 | 239 |
|
| 240 | 240 |
marker = get_bits1(&s->gb); |
| 241 | 241 |
|
| ... | ... |
@@ -29,7 +29,7 @@ static int s302m_parse_frame_header(AVCodecContext *avctx, const uint8_t *buf, |
| 29 | 29 |
int buf_size) |
| 30 | 30 |
{
|
| 31 | 31 |
uint32_t h; |
| 32 |
- int frame_size, channels, id, bits; |
|
| 32 |
+ int frame_size, channels, id av_unused, bits; |
|
| 33 | 33 |
|
| 34 | 34 |
if (buf_size <= AES3_HEADER_LEN) {
|
| 35 | 35 |
av_log(avctx, AV_LOG_ERROR, "frame is too short\n"); |
| ... | ... |
@@ -196,7 +196,7 @@ static int decode_wave_header(AVCodecContext *avctx, uint8_t *header, int header |
| 196 | 196 |
{
|
| 197 | 197 |
GetBitContext hb; |
| 198 | 198 |
int len; |
| 199 |
- int chunk_size; |
|
| 199 |
+ int chunk_size av_unused; |
|
| 200 | 200 |
short wave_format; |
| 201 | 201 |
|
| 202 | 202 |
init_get_bits(&hb, header, header_size*8); |
| ... | ... |
@@ -38,15 +38,12 @@ static int sp5x_decode_frame(AVCodecContext *avctx, |
| 38 | 38 |
int buf_size = avpkt->size; |
| 39 | 39 |
AVPacket avpkt_recoded; |
| 40 | 40 |
const int qscale = 5; |
| 41 |
- const uint8_t *buf_ptr; |
|
| 42 | 41 |
uint8_t *recoded; |
| 43 | 42 |
int i = 0, j = 0; |
| 44 | 43 |
|
| 45 | 44 |
if (!avctx->width || !avctx->height) |
| 46 | 45 |
return -1; |
| 47 | 46 |
|
| 48 |
- buf_ptr = buf; |
|
| 49 |
- |
|
| 50 | 47 |
recoded = av_mallocz(buf_size + 1024); |
| 51 | 48 |
if (!recoded) |
| 52 | 49 |
return -1; |
| ... | ... |
@@ -201,7 +201,6 @@ static inline int tm2_read_header(TM2Context *ctx, const uint8_t *buf) |
| 201 | 201 |
{
|
| 202 | 202 |
uint32_t magic; |
| 203 | 203 |
const uint8_t *obuf; |
| 204 |
- int length; |
|
| 205 | 204 |
|
| 206 | 205 |
obuf = buf; |
| 207 | 206 |
|
| ... | ... |
@@ -212,7 +211,7 @@ static inline int tm2_read_header(TM2Context *ctx, const uint8_t *buf) |
| 212 | 212 |
/* av_log (ctx->avctx, AV_LOG_ERROR, "TM2 old header: not implemented (yet)\n"); */ |
| 213 | 213 |
return 40; |
| 214 | 214 |
} else if(magic == 0x00000101) { /* new header */
|
| 215 |
- int w, h, size, flags, xr, yr; |
|
| 215 |
+ av_unused int w, h, size, flags, xr, yr, length; |
|
| 216 | 216 |
|
| 217 | 217 |
length = AV_RL32(buf); |
| 218 | 218 |
buf += 4; |
| ... | ... |
@@ -109,7 +109,7 @@ static int vaapi_mpeg2_decode_slice(AVCodecContext *avctx, const uint8_t *buffer |
| 109 | 109 |
MpegEncContext * const s = avctx->priv_data; |
| 110 | 110 |
VASliceParameterBufferMPEG2 *slice_param; |
| 111 | 111 |
GetBitContext gb; |
| 112 |
- uint32_t start_code, quantiser_scale_code, intra_slice_flag, macroblock_offset; |
|
| 112 |
+ uint32_t start_code av_unused, quantiser_scale_code, intra_slice_flag, macroblock_offset; |
|
| 113 | 113 |
|
| 114 | 114 |
av_dlog(avctx, "vaapi_mpeg2_decode_slice(): buffer %p, size %d\n", buffer, size); |
| 115 | 115 |
|
| ... | ... |
@@ -199,7 +199,6 @@ static void vmd_decode(VmdVideoContext *s) |
| 199 | 199 |
|
| 200 | 200 |
int frame_x, frame_y; |
| 201 | 201 |
int frame_width, frame_height; |
| 202 |
- int dp_size; |
|
| 203 | 202 |
|
| 204 | 203 |
frame_x = AV_RL16(&s->buf[6]); |
| 205 | 204 |
frame_y = AV_RL16(&s->buf[8]); |
| ... | ... |
@@ -247,7 +246,6 @@ static void vmd_decode(VmdVideoContext *s) |
| 247 | 247 |
} |
| 248 | 248 |
|
| 249 | 249 |
dp = &s->frame.data[0][frame_y * s->frame.linesize[0] + frame_x]; |
| 250 |
- dp_size = s->frame.linesize[0] * s->avctx->height; |
|
| 251 | 250 |
pp = &s->prev_frame.data[0][frame_y * s->prev_frame.linesize[0] + frame_x]; |
| 252 | 251 |
switch (meth) {
|
| 253 | 252 |
case 1: |
| ... | ... |
@@ -181,7 +181,7 @@ static int encode_frame(AVCodecContext *avctx, uint8_t *buf, int buf_size, void |
| 181 | 181 |
int x, y, bh2, bw2, xored; |
| 182 | 182 |
uint8_t *tsrc, *tprev; |
| 183 | 183 |
uint8_t *mv; |
| 184 |
- int mx, my, bv; |
|
| 184 |
+ int mx, my; |
|
| 185 | 185 |
|
| 186 | 186 |
bw = (avctx->width + ZMBV_BLOCK - 1) / ZMBV_BLOCK; |
| 187 | 187 |
bh = (avctx->height + ZMBV_BLOCK - 1) / ZMBV_BLOCK; |
| ... | ... |
@@ -197,7 +197,7 @@ static int encode_frame(AVCodecContext *avctx, uint8_t *buf, int buf_size, void |
| 197 | 197 |
tsrc = src + x; |
| 198 | 198 |
tprev = prev + x; |
| 199 | 199 |
|
| 200 |
- bv = zmbv_me(c, tsrc, p->linesize[0], tprev, c->pstride, x, y, &mx, &my, &xored); |
|
| 200 |
+ zmbv_me(c, tsrc, p->linesize[0], tprev, c->pstride, x, y, &mx, &my, &xored); |
|
| 201 | 201 |
mv[0] = (mx << 1) | !!xored; |
| 202 | 202 |
mv[1] = my << 1; |
| 203 | 203 |
tprev += mx + my * c->pstride; |
| ... | ... |
@@ -153,7 +153,7 @@ static void end_frame(AVFilterLink *inlink) |
| 153 | 153 |
AVFilterBufferRef *inpicref = inlink->cur_buf; |
| 154 | 154 |
AVFilterBufferRef *outpicref = outlink->out_buf; |
| 155 | 155 |
|
| 156 |
- int h, w, plane, line_step, line_size, line; |
|
| 156 |
+ int h, plane, line_step, line_size, line; |
|
| 157 | 157 |
uint8_t *cpy_src, *cpy_dst; |
| 158 | 158 |
|
| 159 | 159 |
if ( inpicref->video->interlaced |
| ... | ... |
@@ -162,7 +162,6 @@ static void end_frame(AVFilterLink *inlink) |
| 162 | 162 |
"picture will move %s one line\n", |
| 163 | 163 |
fieldorder->dst_tff ? "up" : "down"); |
| 164 | 164 |
h = inpicref->video->h; |
| 165 |
- w = inpicref->video->w; |
|
| 166 | 165 |
for (plane = 0; plane < 4 && inpicref->data[plane]; plane++) {
|
| 167 | 166 |
line_step = inpicref->linesize[plane]; |
| 168 | 167 |
line_size = fieldorder->line_size[plane]; |
| ... | ... |
@@ -246,7 +246,7 @@ static int fourxm_read_packet(AVFormatContext *s, |
| 246 | 246 |
FourxmDemuxContext *fourxm = s->priv_data; |
| 247 | 247 |
AVIOContext *pb = s->pb; |
| 248 | 248 |
unsigned int fourcc_tag; |
| 249 |
- unsigned int size, out_size; |
|
| 249 |
+ unsigned int size, out_size av_unused; |
|
| 250 | 250 |
int ret = 0; |
| 251 | 251 |
unsigned int track_number; |
| 252 | 252 |
int packet_read = 0; |
| ... | ... |
@@ -209,7 +209,7 @@ static int asf_read_stream_properties(AVFormatContext *s, int64_t size) |
| 209 | 209 |
ff_asf_guid g; |
| 210 | 210 |
enum AVMediaType type; |
| 211 | 211 |
int type_specific_size, sizeX; |
| 212 |
- uint64_t total_size; |
|
| 212 |
+ uint64_t total_size av_unused; |
|
| 213 | 213 |
unsigned int tag1; |
| 214 | 214 |
int64_t pos1, pos2, start_time; |
| 215 | 215 |
int test_for_ext_stream_audio, is_dvr_ms_audio=0; |
| ... | ... |
@@ -393,7 +393,7 @@ static int asf_read_ext_stream_properties(AVFormatContext *s, int64_t size) |
| 393 | 393 |
AVIOContext *pb = s->pb; |
| 394 | 394 |
ff_asf_guid g; |
| 395 | 395 |
int ext_len, payload_ext_ct, stream_ct, i; |
| 396 |
- uint32_t ext_d, leak_rate, stream_num; |
|
| 396 |
+ uint32_t ext_d av_unused, leak_rate, stream_num; |
|
| 397 | 397 |
unsigned int stream_languageid_index; |
| 398 | 398 |
|
| 399 | 399 |
avio_rl64(pb); // starttime |
| ... | ... |
@@ -511,7 +511,7 @@ static int asf_read_metadata(AVFormatContext *s, int64_t size) |
| 511 | 511 |
{
|
| 512 | 512 |
AVIOContext *pb = s->pb; |
| 513 | 513 |
ASFContext *asf = s->priv_data; |
| 514 |
- int n, stream_num, name_len, value_len, value_type, value_num; |
|
| 514 |
+ int n, stream_num, name_len, value_len, value_type av_unused, value_num; |
|
| 515 | 515 |
int ret, i; |
| 516 | 516 |
n = avio_rl16(pb); |
| 517 | 517 |
|
| ... | ... |
@@ -626,7 +626,7 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap) |
| 626 | 626 |
// if so the next iteration will pick it up |
| 627 | 627 |
continue; |
| 628 | 628 |
} else if (!ff_guidcmp(&g, &ff_asf_head1_guid)) {
|
| 629 |
- int v1, v2; |
|
| 629 |
+ av_unused int v1, v2; |
|
| 630 | 630 |
ff_get_guid(pb, &g); |
| 631 | 631 |
v1 = avio_rl32(pb); |
| 632 | 632 |
v2 = avio_rl16(pb); |
| ... | ... |
@@ -799,7 +799,7 @@ static int asf_read_frame_header(AVFormatContext *s, AVIOContext *pb){
|
| 799 | 799 |
ASFContext *asf = s->priv_data; |
| 800 | 800 |
int rsize = 1; |
| 801 | 801 |
int num = avio_r8(pb); |
| 802 |
- int64_t ts0, ts1; |
|
| 802 |
+ int64_t ts0, ts1 av_unused; |
|
| 803 | 803 |
|
| 804 | 804 |
asf->packet_segments--; |
| 805 | 805 |
asf->packet_key_frame = num >> 7; |
| ... | ... |
@@ -186,7 +186,7 @@ static int mmf_read_header(AVFormatContext *s, |
| 186 | 186 |
unsigned int tag; |
| 187 | 187 |
AVIOContext *pb = s->pb; |
| 188 | 188 |
AVStream *st; |
| 189 |
- int64_t file_size, size; |
|
| 189 |
+ int64_t file_size av_unused, size; |
|
| 190 | 190 |
int rate, params; |
| 191 | 191 |
|
| 192 | 192 |
tag = avio_rl32(pb); |
| ... | ... |
@@ -263,12 +263,10 @@ static int mmf_read_packet(AVFormatContext *s, |
| 263 | 263 |
AVPacket *pkt) |
| 264 | 264 |
{
|
| 265 | 265 |
MMFContext *mmf = s->priv_data; |
| 266 |
- AVStream *st; |
|
| 267 | 266 |
int ret, size; |
| 268 | 267 |
|
| 269 | 268 |
if (url_feof(s->pb)) |
| 270 | 269 |
return AVERROR(EIO); |
| 271 |
- st = s->streams[0]; |
|
| 272 | 270 |
|
| 273 | 271 |
size = MAX_SIZE; |
| 274 | 272 |
if(size > mmf->data_size) |
| ... | ... |
@@ -469,21 +469,21 @@ static int mov_read_hdlr(MOVContext *c, AVIOContext *pb, MOVAtom atom) |
| 469 | 469 |
int ff_mov_read_esds(AVFormatContext *fc, AVIOContext *pb, MOVAtom atom) |
| 470 | 470 |
{
|
| 471 | 471 |
AVStream *st; |
| 472 |
- int tag, len; |
|
| 472 |
+ int tag; |
|
| 473 | 473 |
|
| 474 | 474 |
if (fc->nb_streams < 1) |
| 475 | 475 |
return 0; |
| 476 | 476 |
st = fc->streams[fc->nb_streams-1]; |
| 477 | 477 |
|
| 478 | 478 |
avio_rb32(pb); /* version + flags */ |
| 479 |
- len = ff_mp4_read_descr(fc, pb, &tag); |
|
| 479 |
+ ff_mp4_read_descr(fc, pb, &tag); |
|
| 480 | 480 |
if (tag == MP4ESDescrTag) {
|
| 481 | 481 |
avio_rb16(pb); /* ID */ |
| 482 | 482 |
avio_r8(pb); /* priority */ |
| 483 | 483 |
} else |
| 484 | 484 |
avio_rb16(pb); /* ID */ |
| 485 | 485 |
|
| 486 |
- len = ff_mp4_read_descr(fc, pb, &tag); |
|
| 486 |
+ ff_mp4_read_descr(fc, pb, &tag); |
|
| 487 | 487 |
if (tag == MP4DecConfigDescrTag) |
| 488 | 488 |
ff_mp4_read_dec_config_descr(fc, st, pb); |
| 489 | 489 |
return 0; |
| ... | ... |
@@ -197,8 +197,8 @@ static int ogg_read_page(AVFormatContext *s, int *str) |
| 197 | 197 |
int flags, nsegs; |
| 198 | 198 |
uint64_t gp; |
| 199 | 199 |
uint32_t serial; |
| 200 |
- uint32_t seq; |
|
| 201 |
- uint32_t crc; |
|
| 200 |
+ uint32_t seq av_unused; |
|
| 201 |
+ uint32_t crc av_unused; |
|
| 202 | 202 |
int size, idx; |
| 203 | 203 |
uint8_t sync[4]; |
| 204 | 204 |
int sp = 0; |
| ... | ... |
@@ -41,8 +41,8 @@ static int celt_header(AVFormatContext *s, int idx) |
| 41 | 41 |
|
| 42 | 42 |
/* Main header */ |
| 43 | 43 |
|
| 44 |
- uint32_t version, header_size, sample_rate, nb_channels, frame_size; |
|
| 45 |
- uint32_t overlap, bytes_per_packet, extra_headers; |
|
| 44 |
+ uint32_t version, header_size av_unused, sample_rate, nb_channels, frame_size; |
|
| 45 |
+ uint32_t overlap, bytes_per_packet av_unused, extra_headers; |
|
| 46 | 46 |
uint8_t *extradata; |
| 47 | 47 |
|
| 48 | 48 |
extradata = av_malloc(2 * sizeof(uint32_t) + |
| ... | ... |
@@ -80,8 +80,8 @@ static av_cold int rl2_read_header(AVFormatContext *s, |
| 80 | 80 |
unsigned int audio_frame_counter = 0; |
| 81 | 81 |
unsigned int video_frame_counter = 0; |
| 82 | 82 |
unsigned int back_size; |
| 83 |
- int data_size; |
|
| 84 |
- unsigned short encoding_method; |
|
| 83 |
+ int data_size av_unused; |
|
| 84 |
+ unsigned short encoding_method av_unused; |
|
| 85 | 85 |
unsigned short sound_rate; |
| 86 | 86 |
unsigned short rate; |
| 87 | 87 |
unsigned short channels; |
| ... | ... |
@@ -280,7 +280,7 @@ ff_rm_read_mdpr_codecdata (AVFormatContext *s, AVIOContext *pb, |
| 280 | 280 |
if (rm_read_audio_stream_info(s, pb, st, rst, 0)) |
| 281 | 281 |
return -1; |
| 282 | 282 |
} else {
|
| 283 |
- int fps, fps2; |
|
| 283 |
+ int fps, fps2 av_unused; |
|
| 284 | 284 |
if (avio_rl32(pb) != MKTAG('V', 'I', 'D', 'O')) {
|
| 285 | 285 |
fail1: |
| 286 | 286 |
av_log(st->codec, AV_LOG_ERROR, "Unsupported video codec\n"); |
| ... | ... |
@@ -299,7 +299,7 @@ static int rpl_read_packet(AVFormatContext *s, AVPacket *pkt) |
| 299 | 299 |
stream->codec->codec_tag == 124) {
|
| 300 | 300 |
// We have to split Escape 124 frames because there are |
| 301 | 301 |
// multiple frames per chunk in Escape 124 samples. |
| 302 |
- uint32_t frame_size, frame_flags; |
|
| 302 |
+ uint32_t frame_size, frame_flags av_unused; |
|
| 303 | 303 |
|
| 304 | 304 |
frame_flags = avio_rl32(pb); |
| 305 | 305 |
frame_size = avio_rl32(pb); |
| ... | ... |
@@ -108,7 +108,7 @@ static int parse_fmtp_config(AVStream *st, char *value) |
| 108 | 108 |
int len = ff_hex_to_data(NULL, value), i, ret = 0; |
| 109 | 109 |
GetBitContext gb; |
| 110 | 110 |
uint8_t *config; |
| 111 |
- int audio_mux_version, same_time_framing, num_sub_frames, |
|
| 111 |
+ int audio_mux_version, same_time_framing, num_sub_frames av_unused, |
|
| 112 | 112 |
num_programs, num_layers; |
| 113 | 113 |
|
| 114 | 114 |
/* Pad this buffer, too, to avoid out of bounds reads with get_bits below */ |
| ... | ... |
@@ -32,7 +32,7 @@ int ff_sauce_read(AVFormatContext *avctx, uint64_t *fsize, int *got_width, int g |
| 32 | 32 |
{
|
| 33 | 33 |
AVIOContext *pb = avctx->pb; |
| 34 | 34 |
char buf[36]; |
| 35 |
- int datatype, filetype, t1, t2, nb_comments, flags; |
|
| 35 |
+ int datatype, filetype, t1, t2, nb_comments, flags av_unused; |
|
| 36 | 36 |
uint64_t start_pos = avio_size(pb) - 128; |
| 37 | 37 |
|
| 38 | 38 |
avio_seek(pb, start_pos, SEEK_SET); |
| ... | ... |
@@ -233,7 +233,6 @@ static int smacker_read_packet(AVFormatContext *s, AVPacket *pkt) |
| 233 | 233 |
int i; |
| 234 | 234 |
int frame_size = 0; |
| 235 | 235 |
int palchange = 0; |
| 236 |
- int pos; |
|
| 237 | 236 |
|
| 238 | 237 |
if (url_feof(s->pb) || smk->cur_frame >= smk->frames) |
| 239 | 238 |
return AVERROR_EOF; |
| ... | ... |
@@ -244,7 +243,6 @@ static int smacker_read_packet(AVFormatContext *s, AVPacket *pkt) |
| 244 | 244 |
frame_size = smk->frm_size[smk->cur_frame] & (~3); |
| 245 | 245 |
flags = smk->frm_flags[smk->cur_frame]; |
| 246 | 246 |
/* handle palette change event */ |
| 247 |
- pos = avio_tell(s->pb); |
|
| 248 | 247 |
if(flags & SMACKER_PAL){
|
| 249 | 248 |
int size, sz, t, off, j, pos; |
| 250 | 249 |
uint8_t *pal = smk->pal; |
| ... | ... |
@@ -85,7 +85,7 @@ static int sol_channels(int magic, int type) |
| 85 | 85 |
static int sol_read_header(AVFormatContext *s, |
| 86 | 86 |
AVFormatParameters *ap) |
| 87 | 87 |
{
|
| 88 |
- int size; |
|
| 88 |
+ int size av_unused; |
|
| 89 | 89 |
unsigned int magic,tag; |
| 90 | 90 |
AVIOContext *pb = s->pb; |
| 91 | 91 |
unsigned int id, channels, rate, type; |
| ... | ... |
@@ -94,7 +94,7 @@ static int yuv4_write_packet(AVFormatContext *s, AVPacket *pkt) |
| 94 | 94 |
AVPicture *picture; |
| 95 | 95 |
int* first_pkt = s->priv_data; |
| 96 | 96 |
int width, height, h_chroma_shift, v_chroma_shift; |
| 97 |
- int i, m; |
|
| 97 |
+ int i; |
|
| 98 | 98 |
char buf2[Y4M_LINE_MAX+1]; |
| 99 | 99 |
char buf1[20]; |
| 100 | 100 |
uint8_t *ptr, *ptr1, *ptr2; |
| ... | ... |
@@ -114,7 +114,7 @@ static int yuv4_write_packet(AVFormatContext *s, AVPacket *pkt) |
| 114 | 114 |
|
| 115 | 115 |
/* construct frame header */ |
| 116 | 116 |
|
| 117 |
- m = snprintf(buf1, sizeof(buf1), "%s\n", Y4M_FRAME_MAGIC); |
|
| 117 |
+ snprintf(buf1, sizeof(buf1), "%s\n", Y4M_FRAME_MAGIC); |
|
| 118 | 118 |
avio_write(pb, buf1, strlen(buf1)); |
| 119 | 119 |
|
| 120 | 120 |
width = st->codec->width; |