VP8: fix up handling of segmentation_maps in reference frames.

Associate segmentation_map[] with reference frame, rather than decoding instance. This fixes cases where the map would be free()'ed on e.g. a size change in one thread, whereas the other thread was still accessing it. Also, it fixes cases where threads overwrite data that is still being referenced by the previous thread, who thinks that it's part of the frame previously decoded by the next thread.

Patch by rbultje@chromium.org.

BUG=100464
TEST=run file in bug report
TBR=rbultje

Review URL: http://codereview.chromium.org/8341002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/ffmpeg/source@105977 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2 files changed