API2 Rework: fix VideoFrame2 coping
API2 Rework: correct clean up codec contexts

Correct clean up codec contexts on destroing unopended FormatContext.
API2 Rework: added ability to reset codec defaults on setting codec
API2 Rework: minor & cosmetic changes on av-scale-video sample