On Wed, Apr 15, 2015 at 6:53 PM, Vittorio Giovara <[email protected]> wrote: > Fix a rather lengthy warning from clang. > --- > libavcodec/vc1_pred.c | 16 ++++------------ > 1 file changed, 4 insertions(+), 12 deletions(-) > > diff --git a/libavcodec/vc1_pred.c b/libavcodec/vc1_pred.c > index 07e9d91..1168ab3 100644 > --- a/libavcodec/vc1_pred.c > +++ b/libavcodec/vc1_pred.c > @@ -468,9 +468,9 @@ void ff_vc1_pred_mv_intfr(VC1Context *v, int n, int > dmv_x, int dmv_y, > MpegEncContext *s = &v->s; > int xy, wrap, off = 0; > int A[2], B[2], C[2]; > - int px, py; > + int px = 0, py = 0; > int a_valid = 0, b_valid = 0, c_valid = 0; > - int field_a, field_b, field_c; // 0: same, 1: opposit > + int field_a = 0, field_b = 0, field_c = 0; // 0: same, 1: opposit
The fields part are actually unrelated to the warning, I'll push without this section. -- Vittorio _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
