FFMPEG 2.2 depricates avcodec_get_frame_defaults() so favor av_frame_unref() over that
Get coding coventions right