lavc/vp56: Simplify get/release_buffer code
authorBen Jackson <ben@ben.com>
Sat, 15 Sep 2012 17:32:42 +0000 (10:32 -0700)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 15 Sep 2012 18:26:40 +0000 (20:26 +0200)
commit1c20fcf0b0d30b63c33e4302c3d92b66b1665b33
tree35e5cf8f4af83f60af77911ab900c3210b5bfad1
parenteebc11ebc8000aefc8562d17749ac2f9160fdfec
lavc/vp56: Simplify get/release_buffer code

Rather than cleverly managing frame pointers with swaps to avoid
re-using "golden" frames, just do brute-force management of the
4 AVFrames.  New strategy is probably no more costly and is easier
to adapt to threaded usage.

Signed-off-by: Ben Jackson <ben@ben.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/vp56.c