Replace AVFrame pointer casts by proper struct member accesses.