paf_video: make code independent of sizeof(AVFrame)

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Fix pthread_cond and pthread_mutex leaks in vp8

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>