Skip to content

Commit

Permalink
Fix some warnings in common files.
Browse files Browse the repository at this point in the history
  • Loading branch information
j0sh committed May 28, 2013
1 parent c8873ff commit fc3fb1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ static int add_decoder(capture_t *ctx)
if (avcodec_open2(c, codec, NULL)) ERR("avcodec_open2");
ctx->picture = avcodec_alloc_frame();
if (codec->capabilities & CODEC_CAP_DR1) {
c->get_buffer = avcodec_default_get_buffer;
c->release_buffer = avcodec_default_release_buffer;
c->get_buffer2 = avcodec_default_get_buffer2;
}
return 0;
}
Expand Down
2 changes: 2 additions & 0 deletions encode.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ static void print_mbinfo(uint8_t* mbinfo, int w, int h)
free(str);
}

#if 0
static void print_offsets(float* offsets, int w, int h)
{
int mb_x = w/16 + (0 != w % 16), mb_y = h/16 + (0 != h % 16);
Expand All @@ -92,6 +93,7 @@ static void print_offsets(float* offsets, int w, int h)
printf("Offset Blocks\n%s\n", str);
free(str);
}
#endif

int start_encode(encode_t *enc, int width, int height, uint8_t *in)
{
Expand Down

0 comments on commit fc3fb1e

Please sign in to comment.