]> granicus.if.org Git - libvpx/commit
Reset x->skip for each iteration in the RD loop.
authorRonald S. Bultje <rbultje@google.com>
Mon, 14 Jan 2013 20:43:12 +0000 (12:43 -0800)
committerRonald S. Bultje <rbultje@google.com>
Mon, 14 Jan 2013 20:44:32 +0000 (12:44 -0800)
commit290b83ab627365ac697b477a8d0cfa8cbf6b90db
tree05072b70c7e3433232ca6edae169ac38aec93a71
parent76ac5b39375203ebc0111a5907abea40678fedf0
Reset x->skip for each iteration in the RD loop.

This prevents ill-defined behaviour, such as setting x->skip for a mode
that is excluded because of frame-level flags (e.g. filter selection,
compound prediction selection), then not breaking out of the RD loop
because the mode is not allowed, but keeping the flag on. Whatever mode
is iterated through next in the RD loop will then carry this flag, and
all sort of bad stuff happens, such as x->skip being set on intra pred
modes.

Change-Id: I5bec46b36e38292174acb1c564b3caf00a9b4b9a
vp9/encoder/vp9_rdopt.c