| 1 | diff -ur modules/avcodec.orig/avcodec.c modules/avcodec/avcodec.c |
| 2 | --- modules/avcodec.orig/avcodec.c 2012-04-10 02:02:25.000000000 -0700 |
| 3 | +++ modules/avcodec/avcodec.c 2013-05-24 10:48:55.000000000 -0700 |
| 4 | @@ -323,7 +323,7 @@ |
| 5 | if (update) { |
| 6 | re_printf("avcodec encoder picture update\n"); |
| 7 | st->enc.pict->key_frame = 1; |
| 8 | - st->enc.pict->pict_type = FF_I_TYPE; /* Infra Frame */ |
| 9 | + st->enc.pict->pict_type = AV_PICTURE_TYPE_I; /* Infra Frame */ |
| 10 | } |
| 11 | else { |
| 12 | st->enc.pict->key_frame = 0; |
| 13 | diff -ur modules/avformat.orig/avf.c modules/avformat/avf.c |
| 14 | --- modules/avformat.orig/avf.c 2012-04-17 12:26:18.000000000 -0700 |
| 15 | +++ modules/avformat/avf.c 2013-05-24 11:23:16.000000000 -0700 |
| 16 | @@ -199,7 +199,6 @@ |
| 17 | const char *dev, vidsrc_frame_h *frameh, |
| 18 | vidsrc_error_h *errorh, void *arg) |
| 19 | { |
| 20 | - AVFormatParameters prms; |
| 21 | struct vidsrc_st *st; |
| 22 | bool found_stream = false; |
| 23 | uint32_t i; |
| 24 | @@ -233,7 +232,6 @@ |
| 25 | */ |
| 26 | |
| 27 | #if LIBAVFORMAT_VERSION_INT >= ((52<<16) + (110<<8) + 0) |
| 28 | - (void)prms; |
| 29 | (void)fmt; |
| 30 | ret = avformat_open_input(&st->ic, dev, NULL, NULL); |
| 31 | #else |